Syncing Local Database with SQL Server on Ionic - sql-server

I currently have an SQL Server database running on a VM. I also have a REST API made with NodeJS and ExpressJS that is listening for requests connected to this database for the backend.
On the frontend, I would like my Ionic App to have a local database so that users can still view and use the app when there is no internet connection. There are alot of pictures(paths to pictures) on this database. The database is about 3 GB. What is the best way I can implement so that my App can use a local database that will sync with the SQL Server and be able to view the pictures when there is a data connection?
I have looked at PouchDB, however it is a NoSQL local database. Is there anything similar for SQL Server I can use for my front end?

Related

How do I make this web service call fault tolerant?

We have a WinForms desktop app that connects to a remote server to pull some data. The remote server hosts a web service on a standard IIS website that queries a SQL Server database installed on the same machine. Today, if the remote server is under maintenance or not available our end-user cannot retrieve the necessary data.
Now I am requested to make this feature fault-tolerant. Here are my questions:
Should I ask for another remote server that runs the same web service and move the DB to a third remote server? So the two web services can connect to the same DB?
Should I consider moving the web service logic to the WinForms desktop app and connect directly to a remote DB paying a first-class 99.99% availability service?
Do AWS or Azure provide a ready-to-use solution that fulfills my requirements?
Is there any other option I didn't consider?

IONIC 4 Online/Offline sync from SQLite to SQL server

I am about to start working on an IONIC app that requires data to be stored on the users' device (SQLite) and accessible when the app is not online. The app will also need to sync any changes made on the local storage to the server DB (SQL Server) and vice versa when an internet connection is available.
What is the best/recommended way to accomplish this task?

Slowness in cloud to onpremise Oracle database connection

I have some on-premise based frontend java servlet server, on-premise Java backend app server and one on-premise oracle database server. My Oracle client version is 12.1.0 . Java version is openjdk "1.8.0_222" . And using tomcat v7.0.55 for frontend servlets. The Architecture is like the backend server communicate with Oracle DB to process SQL queries.
Now I moved all my servers to AWS cloud docker based containers except Oracle DB. And my Java backend server is running on AWS docker is connecting to Oracle DB running in on-premise Datacenter.
Now I am facing an issue where the AWS based application having latency when it connects to on-premise database and the latency keeps increasing as the number of requests grows and eventually the application gets gateway timeout if the requests are keep on increasing. But strangely it will not happen if I connect my AWS tomcat frontend servers to on-premise java backend servers which talks to on-premise Oracle DB. it only happens when the AWS Java backend servers talks to on-premise Oracle DB. I am not sure why this is happening. Any ideas will be highly appreciated.
The issue is related to the DAO / ORM framework we using. If you use something like Hibernate , Spring it will work in a way where SQL calls are not optimized with join statements. So to fetch a 1000 objects there will be 1000+ SQL calls. So if there is a single digit millisecond latency in the network to Database it will boot to 1000 times delay time. So the solution was to keep Database as close as possible with the application.

Sync multiple local MongoDB databases to one remote database

In order to build a native desktop application with Electron that can be installed by users in many desktops. Every user must install a local MongoDB database to use the application locally. Now i want to provide a cloud service that can sync the local database for every registered user to the remote server MongoDB database. I'm thinking about putting every local database as a collection in the remote database or maybe just create all the local databases in the remote database by renaming their databases to their usernames.
Which method is good for me? is there a best practice for this problem? what about the limits?

Database mirroring on Rackspace or Xeround

I´m running 2 servers on Rackspace. I have set up a load balancer that balances the traffic between these two servers.
Each of these servers runs a Glassfish v3 server with a Java EE application on it, that offers a web interface to write some data into server database. The problem is that I need to have the same data on each database (server 1 database and server 2 database).
A resolution to this problem is mirroring of databases.
I would like to ask if there is some automated system to mirror these databases inside the rackspace?
Furthermore I ve found Xendros database cloud that is able to work with Rackspace Cloud. Is it possible to mirror these databases inside the Xeround?
Or are there any better solutions ?
Thanks for answers :)
With Xeround you do not need to mirror your database, you create a single database instance and direct your application servers to work with this instance.
For more information you are welcomed to visit our web site http://www.xeround.com

Resources