Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send to firehose asynchronously #9

Merged
merged 4 commits into from
Jan 4, 2024
Merged

Conversation

paaaaay5
Copy link
Contributor

@paaaaay5 paaaaay5 commented Dec 6, 2023

The current implementation of firequeue sends requests from clients synchronously. I thought that sending requests asynchronously would reduce latency. Also, by sending requests in batch, the number of calls to the firehoseAPI can be reduced.Therefore, I made the following changes

  1. client requests are only added to the queue and not sent.
  2. add a worker to send batches from the queue at regular intervals.

@paaaaay5 paaaaay5 marked this pull request as ready for review December 6, 2023 06:40
@mash
Copy link
Contributor

mash commented Jan 4, 2024

お忙しそうなので

@mash mash merged commit ef13c99 into natureglobal:main Jan 4, 2024
4 checks passed
mash added a commit that referenced this pull request Jan 9, 2024
## [v0.0.6](v0.0.5...v0.0.6) (2024-01-04)

* Send to firehose asynchronously [#9](#9) ([paaaaay5](https://github.com/paaaaay5))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants