File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Wireless Phone Company - best way to retrieve data Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Wireless Phone Company - best way to retrieve data" Watch "Wireless Phone Company - best way to retrieve data" New topic
Author

Wireless Phone Company - best way to retrieve data

Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
hi,
in my assignement i have to model a web application for allows customare to view calls/traffic of own mobile details.
in first version of my solution, the customare invoke service (by web page) and he obtains all data in a row. all details are put in the HTTPSession. Further request for details are served from HTTPSession.
i want to review this solution (tell me if i wrong) by deleting all data in Session (EJBSession too) and i want to make call for details on fly.
what do you think about it?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Raffaele,
Welcome to CodeRanch!

Whether to cache the data in the session depends on your performance and failover requirements. Also, note that you shouldn't be caching the data in both the HttpSession and EJB stateful bean. Pick one. Having it in both is redundant.


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
hi Jeanne,
thanks.
my caching solution isn't both session, but one o them.
performance requirement is that all pages would be dislpayed in 3 seconds.
availability 99.99%
the scalability requirement could be tricky: customare base will grow by 1000% the first year.
Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
and what about replication of data?
metersystem, external system written in java, track the customare usage.
which is better choose:
-for every details our system calls the metersystem (by EJB/RMI): one call to metersystem for each customare request for details
-replication of details data inside our system: there is a batch that makes one call to metersystem for replication of details, in this way every request for details is inside the system.

What do you think about that?
some considerations please?

thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

It depends on your volume of updates. There isn't one right or wrong answer. You just have to explain why you chose what you chose.
Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
if i choose to replicate data with a batch, do i have to make the sequence of batch? or it is sufficient make assumption?
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

Raffaele San wrote:if i choose to replicate data with a batch, do i have to make the sequence of batch? or it is sufficient make assumption?

Presumably the data keeps changing so you have to do those bulk batch replications periodically. Assuming it never changes seems like too much of a simplifying assumption.
Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
data to be replicated, are the customare phone usage (call, text message and traffica data).
the batch replicate data daily. it starts to run at 00.00 for replicate last day data
Raffaele San
Greenhorn

Joined: Mar 30, 2014
Posts: 7
no one can help me? give me any suggestion?
thanks
Jeanne Boyarsky
author & internet detective
Marshal

Joined: May 26, 2003
Posts: 30758
    
156

What do you think the answer is? I think you have a gut feeling based on your answers to my leading questions.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Wireless Phone Company - best way to retrieve data