paldepind/synceddb

Ready for production?

ShahidH opened this issue · 7 comments

I am considering using SyncedDB, is this script ready for production?

@paldepind What do you say?
I think the answer is no, until "Handle terminated connections with the server" is done at least, although it must be alright for a general usage.

From #34, let me answer you here @awitherow.

Thank you @awitherow, it is great to hear supporting the project. "Reconnection attempts", exactly. And there can be more, for which good ws&ws-client wrappers exist.

I believe our current goal is closing this #22 and, for doing that, these can be our tasks:

  • Listing basic functions about stability of ws connection, which are generally expected for a production use
    • #34 is one of them
  • Finding a wrapper lib of ws&ws-client might be a shorter path. Of course it might not be
    • #28 is the ticket to consider using a wrapper

Hey guys what is the scenario now?

Hi @itaditya . Honestly it is not ready in my opinion, while it must be an interesting project in the PWA era.

  • A few issues
  • No active maintainer

Hello guys! Could you help me understand syncedDB a little more?
I have a web app in PHP and Postgresql. Unfortunately, I use a local web server in my notebook (A) and another local web server mounted in a PC (B) from a friend of mine. Finaly, a "server" (S) was mounted in a teacher's room (It can be accessed by a url). I need a "button" in my app that make the sync (verify if that sever S is online) and than sync the differences relatated A and S or B an S (data added, or deleted, or updated). With this syncedDB, is it possible to do that?

@JoaoPF Hi. Not sure if I understand correctly, but when S behaves as a SyncedDB backend (including an application process and a database), the A and B will have a synced browser client. As long as your browser clients have an connection to the backend, modified data will be synced to it, which will be broadcasted to other connected clients.

@piglovesyou Hi. I'm sorry for the gap, and thank you so much to answer me. Well, If I have these two clients working offline and sometimes one of them get some connection and the user click in a button to sync with the server (PHP and Postgresql). How can I start to do it? I read the docs, try the example but I don't know how to proceed, where I will put the synceddb files in my application, etc. I sorry but do you have some example closest of my question? I'm a little worried, I need do it work. I've seen something inside the DB postgresql named Slony-I to sync all databases but this solution looks a little strange.