Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
 What's up guys! My question is: Has any form or tool been created that allows data to be saved in an offline database if the customer's internet goes down? I will explain better, my application is Web, made in .Net, runs entirely on the Browser and at first, it will record everything in the online database, but what if the client connection drops? I would need this data to be recorded on the client's machine locally, so that when the connection comes back, all this information stored locally would be posted in the online database. Any idea?

Thank you.


What I have tried:

Google, books and friends. And now codeproject.
Posted
Updated 10-Feb-21 5:52am

1 solution

The best thing would be to handle such situations in your code.

For Javascript something exists that fits your description PouchDB:
best-indexeddb-wrapper-libraries~pouchdb[^]

Another option might be to choose a resilient database like CockroachDB that are designed for such calamities, but that would probably be even more complex: what-are-the-easiest-database-engines-to-scale~cockroachdb[^]

And if you are using Entity Framework:
GitHub - TrackableEntities/trackable-entities: N-Tier Support for Entity Framework with WCF or ASP.NET Web API[^]
 
Share this answer
 
v3
Comments
MarvinBR 17-Feb-21 6:48am    
Thank you so much! You save my life!
RickZeeland 17-Feb-21 6:56am    
Good :)
If my answer was helpful, you can mark it as solved.
Btw, what solution did you choose?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900