Using Ruby to Create Client Software to Synchronize the Rails Server Database with Local

Asked 2 years ago, Updated 2 years ago, 72 views

If you have any advice on how to create a client application with a database using Ruby, could you please give me some advice?

Rails server is present.This has already been created.We are planning to create client applications on laptops that communicate with this server.The laptop is often taken out and offline.So I'm going to have a database on my computer, and I'm going to pull the data that the user needs from the server and copy it.When you switch from offline to online, you download and synchronize the differences between the previous data.

but I had no idea what to start with.
There is a lot of literature about creating Rails apps on the server side, but there is not much information about client apps.What kind of technology should I use to start production first?

I would appreciate it if you could tell me the technical keywords that I should search on Google.

ruby-on-rails ruby

2022-09-30 21:16

1 Answers

It's a very broad question, so I'm confused about how to answer it, but for now, why don't you skip Offline web application

?

You may have thought of creating a client with Ruby because you use Rails, but the idea of solving everything with HTML seems to work better because you use Rails.

By the way, if you look at "synchronizing databases" literally, you'll need a large-scale mechanism that's almost the same as replication.To avoid this, you should consider "handling partial cache/views of the database (while offline)."

In any case, there is a problem with how to merge updates (collisions) that occur between multiple clients, and there is no generic solution to this problem.It will be solved steadily considering each use case.


2022-09-30 21:16

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.