Re: Re: Development Framework
"Arif Amirani" <[email protected]>
| Newsgroups | gmane.comp.java.openamf.user |
|---|---|
| Message-ID | <[email protected]> |
Hey Stephen, I have like 1k clients connected to a DB over OpenAMF and Tomcat on either ends (obviously with a Flash client :-)). Now each client can make changes to the DB and this needs to be reflected automatically for all the clients. Now there are 2 use cases to this: 1. Only 1 client is connected to the DB and hence the client unneccessary polls for changes. 2. 1k of them connect simultaneously and data changes changes rapidly so the polling is justified. In an event based system, on each data change every client would get notified by the server. So no changes no events no requests made. But in poll based system my 1k clients make 1k requests every 2 seconds (thats the frequency i intend to set). Thats too much! So in essence as i posted earlier we need an intelligent polling system and the interval should be variable. Earlier post sorry to repost. "Seems like polling may be the way to go but if I have like 1k clients polling unneccessarily to a potentially static data server which may have a sudden data change once in a while, it does not sound seriously lucrative. I was thinking of designing/implementing an intelligent polling system which attaches a probability to the next poll. Depending on this probability the client will automatically deduce when to poll next, but I guess such a solution is not very generic and scalable. I just want to finally have a system that is as efficent as event based models and can be implemented using polling." Would such a model actually work or im just thinkin too much math :) Thanks, Arif Amirani. "Stephen Jackson" <[email protected]> wrote in message news:1099616593.2655.0.camel@vaquero... What are you trying to solve? On Mon, 2004-11-01 at 04:19, Arif Amirani wrote: "is there no way to send a message from server to client?" Can somebody please comment on this? I am facing imminent polling code to be written if this goes unanswered :) Thanks, Arif Amirani "Ian Pojman" <[email protected]> wrote in message news:[email protected]... EJBs are good for client/server stuff, for one.... its not the programming APIs which you need it for as much as leveraging the functionality of an EJB container, that is, writing simple EJB POJOs and having the magic 'be worked' underneath you. no rmi programming, pooling, etc. I guess using OpenAMF is asking for better performance than SOAP... that's one of the reasons why I'll most likely stick with OpenAMF... is there no way to send a message from server to client? On Sun, 31 Oct 2004 19:49:02 +0100, Franois Le Lay <[email protected]> wrote: > Yeah actually, the idea is to come up with a richer set of examples than > the ones provided in openAMF. As you mentioned it, I also tend to think > that one can achieve better performance by avoiding the use of > persistance frameworks or EJBs whenever they don't fit the purpose. > Actually has anyone here used EJBs rather than JavaBeans/POJOs and for > what specific task? > > > > Ian Pojman wrote: > > >I use hibernate and various j2ee stuff but I do not advocate the use > >of JBoss or JDO or commons stuff. one can do a lot better without a > >bunch of bloaty frameworks... > > > >really nothing much of j2ee is germane because you can do whatever you > >want in your services. > > > >I would rather see someone show some patterns in using openamf, > >examples of more complex AMF conversations. > > > >/ian > > > >On Sun, 31 Oct 2004 18:15:33 +0100, Franois Le Lay <[email protected]> wrote: > > > > > >>Hi all, > >> > >>I would like to write a "getting started" doc dealing with the joint use > >>of OpenAMF+AS2+JBoss+Eclipse+(JDBC, Commons.DbUtils, JDO, Hibernate). So > >>right now I need to know if some of you are using this combiantion of > >>tools as their base framework? Could you describe the way you work in a > >>few simple steps? I know it sounds like I should be more specific about > >>it, but we can get into details later. > >> > >>Cheers, > >>Franois > >> > >> > >> > > ------------------------------------------------------- > This SF.Net email is sponsored by: > Sybase ASE Linux Express Edition - download now for FREE > LinuxWorld Reader's Choice Award Winner for best database on Linux. > http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click > _______________________________________________ > Openamf-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openamf-user > ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=ick ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click _______________________________________________ Openamf-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openamf-user ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_id=5588&alloc_id=12065&op=click