Win a copy of The Business Blockchain this week in the Cloud forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Do You Really use two db files?????!!!

 
fred norris
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
My real world experience is hampering me. In general (especially
for enterprise coding) Two copies of the working data are not kept (except backups or development). The only time i've seen anything remotely like this done is in POS systems, and even then
the local data was synched as soon as possible with the Remote. Do I need to keep these files synched or can I just implement a solution which keeps two seperate and possibly unsynched files?
 
Val Dra
Ranch Hand
Posts: 439
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i had a similar question not long ago and i didn't get any good reply's. It doesn't even make sence to have a local db if the both db's are not in synch. because i can book the flight in user mode while someone else books that same flight in remote mode it just doesn't make sence to me.
------------------
Val SCJP
going for SCJD
 
Chris Goodwin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I believe the point of the assignment is to demonstrate you can construct an application that can operate in either local mode, or network mode. You don't have to allow for a database to operate in both local and network modes at the same time. I don't see a reason to have 2 different database files, in fact the instructions I received indicate you should only have a single database file.
 
fred norris
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Looking at it that way I can say when in "local" mode put the client on the same box as the server. When in "remote" mode put the client on a different box from the server. Ok.... I guess...This is one of those times when I just have to repeat the code whore's mantra "just give the client want they want..it does not matter why they want it..".
 
Chris Goodwin
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You could argue that the application is intended to be run in network mode, but if the network goes down then you can run the client in local mode on the server so that you can still book flights in a network down scenario.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic