-
Notifications
You must be signed in to change notification settings - Fork 20
feat: proposals for implementing msg batching to resources #66
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
base: main
Are you sure you want to change the base?
Conversation
3632a39
to
458cc3b
Compare
458cc3b
to
295304b
Compare
|
||
We prefer the `replayq`, mainly because in this feature messages are always added and accessed in a queue, we never access data by primary keys like a KV database. This is exactly the applicable scenario of `replayq`. The data files will be stored in the specified directory of the local file system, which is very simple. | ||
|
||
The `replayq` was added to the Erlang Kafka driver in 2018, it has experienced several emqx versions and has been proved to be very stable. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
replayq
has its limitations, we may list them here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What limitations does it have?
726f0d6
to
58fc11d
Compare
- **query_mode**: if set to true, the caller of `emqx_resource:query/3` will be blocked until | ||
the driver returns or timeouts; if set to false, the `emqx_resource:query/3` returns immediately. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- **query_mode**: if set to true, the caller of `emqx_resource:query/3` will be blocked until | |
the driver returns or timeouts; if set to false, the `emqx_resource:query/3` returns immediately. | |
- **query_mode**: if set to sync, the caller of `emqx_resource:query/3` will be blocked until | |
the driver returns or timeouts; if set to async, the `emqx_resource:query/3` returns immediately. |
No description provided.