943,739 Members | Top Members by Rank

Ad:
  • JSP Discussion Thread
  • Unsolved
  • Views: 474
  • JSP RSS
Aug 26th, 2009
0

Interview Question

Expand Post »
I attended one interview today,Interviewer asked me one question regarding the creation of unique identifier.

Question :

Consider same webapplication is deployed in 3 webserver.if any user registered in any of my application,a unique identifer is given to the user.It cannot be stored in a database.3 webserver should not produce the same uid again.How t implement this ?
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006
Aug 26th, 2009
0

Re: Interview Question

Since there is no database is available, you could always check with the other web servers before using a UID. There could be two ways of implementing this:
- either each server keeps track of every UID used (synchronization errors could occur), or
- each server keeps a list of its own UID's (would longer to generate a UID, and if one server goes offline there could be problems)
Reputation Points: 69
Solved Threads: 48
Posting Whiz in Training
nmaillet is offline Offline
203 posts
since Aug 2008
Aug 27th, 2009
0

Re: Interview Question

Thank you for your reply.How will they communicate with each other ?
Reputation Points: 10
Solved Threads: 0
Light Poster
sarath.koiloth is offline Offline
30 posts
since Sep 2006

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in JSP Forum Timeline: JavaBeans beginner needs help
Next Thread in JSP Forum Timeline: Working with dynamic textboxes





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC