how to sync local and remote database Angular 4? - database

Fist, sorry for my bad English.
I am new with Angular 4, and need make an aplication (web, or desk with electron), with a remote database for external users querys in the web, but Administrative users need to continue working in case of losing the connection, have a practical way to sync in this case?
Firebase? Mysql? Local database?
Thanks Guys


Can I use in the same project a Database made by myself and a Firebase Database?

I am planning a project and I have the authentication with firebase but I want to have the other tables in another database. Could this option be viable?
A detected problem that could happen would be the duplication of data.
Has anyone done something similar?
At the moment I have not tried anything because I am planning the project, the only thing I have is the authentication with firebase.
I want to do this is because I need to have a local database because users will not have internet connection in many situations.
Thank you so much!!

Connecting a Database to a Xamarin iOS and Android mobile app

I am building my own app to learn a new skill. I have a database of "Tickets" I just want to be able to press a certain button, which will then send a SQL statement to the DB, and return with all of the tickets it calls for. I understand this can be done with Web Services but that seems like overkill for just viewing a one table. The problem is, I cannot figure out where to put the connection strings to set up the connection. Any help is greatly appreciated, thank you.

Flutter with Azure API connecting to SQL SERVER DB

I am developing a mobile app with Flutter, however my data sits in a sql sever database. Would I still be able to perform CRUD operations on that DB from a Flutter mobile app?
And are there any magical plugins for Flutter to achieve this ?
the best way from my point of view is to do that is through http Requests, this means you need to
create a rest application on your azure API
the application will perform http requests(post-patch-delete-get)
each request of these will map to an operation on the database(get = read, post=create, patch=update, delete=delete)
You can reference this blob: How to connect Flutter App to sql server .
NTMS did that successfully with SQLServerSocket.
First: you need a SQLServerSocket: is free and works!
Second: you need a client (look in DartClient folder).
He tested it with his remote sql and is working on CRUD.
I think you can get more useful infromations from that blob.
Hope this helps.

Connecting remote database in Xamarin Forms for IOS application

I have a project has two parts.
1- Windows form or WPF application that basically connects to database and write/read/update some basic text data (this part is already done).
2- On the other hand, I am currently developing an IOS app that can connect to remote database and read/write/update data.
What is the best way to connect the same SQLite or SQL database from both Windows forms app and IOS app.
Thanks in advance
The best way is creating an API/WebService which will be the interface between the database and your clients: WPF, iOS App and any other client you might want to add in the future.
Using a WebService is more secure, I guess you wouldn't want your database username and password being everywhere.
Using a WebService allows you abstract the data layer. Not using an API and using the connection to the database directly from your Apps will tightly couple your apps with the structure of your tables and any single change that happens in the database will force you to do the changes in the apps.
With WebService you decide what information will be available to the ones consuming it.
There are many others Plus on using WebServices but hope this are enough to clear your doubt.

Maintain a user's session state in an ASP.NET MVC app hosted on a web farm

What is the best way to maintain a user's session state in an ASP.NET MVC app hosted on a web farm?
Out application currently uses the standard ASP.NET session on IIS 6.0 but we want to move the app to a web farm environment.
I have read that we can use SQL Server session state for our application but I just want to know if anybody was using something else and why!
One way would be to use the Velocity distributed cache.
Storing session in SQL is still valid in MVC (as it was in WebForms):
We're using it successfully across a few boxes for our MVC app, and have used it across quite a few boxes for older WebForms apps.
You could try storing your sessions in memcache. Should be both fast and scalable. It does require some memory though.
As discussed in one of the StackOverflow podcasts: usually session state is very minimal - a few keys here and there - and works well to simply store this in a central database.