My project architecture is somewhat like this :
I have an Mobile Application, which i use to upload a form and a photo. This application is connected to a server( Server B ). Using this server, i upload photo to s3 and save form data into database.
There is another server( Server A ), which i use to get data from database and view that data on client-side.
Now the problem is - i want to make this process real-time. I tried to use socket.io but that didn't work. I can send data using socket.io to the all client's but how to know that when data is changed in db ?
Is i am doing something architecturally wrong ? Anybody has any idea how to solve this kind of problem ?
Note : I am using different servers because these two are different applications. If one server goes down then it doesn't has any impact on other process.