• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

client / server.

 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i don't understand something in my project specs it says that if a user wanted to by pass the network mode and just use the client mode then i must have a db file on client right but what if it's in case of a servet mode where does db file must be located ? I don't understand this very well. Can someone explain this part to me ? Thanks.
 
Rudy Yeung
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruslan,
The db on the client side for for local connection only. For the remote connection, the db is seated at the server on a remote machine. In summary, you need to have two copies of db, one at the client for local connection, and the other one at the server for remote connection.
Rudy
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yes i though that too but then i have to have them both in synch yes ? or it's not required ? Thanks for your response.
 
Rudy Yeung
Ranch Hand
Posts: 183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ruslan,
I myself do not make them in sync. Your client can support both local and remote connection, but not at the same time, which implies db synchronization is off the topic. Otherwise, the program will be very complicated. Can someone provide feeback on this please?
Rudy
 
Rahul Rathore
Ranch Hand
Posts: 324
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
According to my project specs, the program can be run in the local mode or in the network mode. I instantiate only one db object. For the local mode, the client takes a direct reference to that db object. For the remote mode, the client takes a remote reference to that same db object.
 
Ruslan Ivanov
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You've said nothing about where your db object is located and how your db object access the db.db file and where it's located.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic