ditto icon indicating copy to clipboard operation
ditto copied to clipboard

Support combining several DittoProtocol commands in a single aggregating one

Open thjaeckle opened this issue 7 years ago • 3 comments

In #288 an alternative solution for doing multiple "modify" operations by only issuing a single DittoProtocol command was suggested:

Adding a DittoProtocol command which contains several other DittoProtocol commands (as simple Json array in its JSON form).

As this would be simpler than #288 (adding a "PATCH" command), we track it separately.

thjaeckle avatar Nov 20 '18 07:11 thjaeckle

It seems like something that we could use. In our case we get batch of change events from the gateways that we pass to ditto (through hono) using a hono message per command. A batch command for ditto means that we could send a single message per multiple commands that should optimize the hono usage (e.h. tragic, latency ..). That, in theory, could allow the ditto service to use the underlying database in more efficient way.

avgustinmm avatar Nov 26 '18 10:11 avgustinmm

Is this relevant after #288?

yufei-cai avatar Dec 11 '20 09:12 yufei-cai

It could still be, but with even lower priority when #288 is in place.

thjaeckle avatar Dec 11 '20 09:12 thjaeckle