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

Feature request - Flush method #142

Open
pwfcurry opened this issue Feb 15, 2019 · 3 comments
Open

Feature request - Flush method #142

pwfcurry opened this issue Feb 15, 2019 · 3 comments

Comments

@pwfcurry
Copy link

We've had some problems with message ordering where the solution from Segment support has been to flush after each identify call (also mentioned here in the docs: https://segment.com/docs/destinations/intercom/#server-side-race-condition).

However as there is no way to manually flush the golang client, we would have to call the HTTP API directly.

Thanks!

@renatomariscal
Copy link

@pwfcurry, we also had a situation that we wanted to have a flush. An alternative that is working well for us is to .close, and recreate the client.

@ruudk
Copy link

ruudk commented Oct 18, 2021

I was a bit surprised to find out there is no way to flush the client without closing it.
🙏 Please add support for it so that I don't get these dropped messages:

250 messages dropped because they failed to be sent and the client was closed

@zackrossman
Copy link

+1 to flush functionality! In my opinion the close() + recreate patten is clunky and inefficient. There's an alternative solution to set batchSize = 1 so that the client will send each message to Segment as soon as it's enqueued. Curious to know if there are other workarounds or suggestions from the Segment team.

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

No branches or pull requests

4 participants