Reputation: 150
What mechanism does Couchbase Sync Gateway use for getting the database changes in the couchbase server.
Upvotes: 2
Views: 405
Reputation: 150
After some Research I found out the following points.
1) sync_gateway first establishes a tcp connection with the couchbase server to port 8091 and over that tcp connection it sends http GET request to invoke the REST API /pools ad /pools/default.
2) After that whenever there is a document change initiated by user , sync_gateway send tcp packet with data field asking for the user information and the document information that is being changed .
3) Now sync_gateway sends another TCP packet with revised revision of the packet and gets a response from couchbase server that document has been revised.
4) All these conversation happens using TCP PSH ACK packets. So there are no HTTP packets flowing . Only TCP servers communicating both sides.
Upvotes: 1