Update event method to post instead of get in Ruby SDK
Problem
If there are large number of events being sent to collector, it gets timed out.
Currently, we are making one http request for each event. Instead we can send events in batches to reduce number of API calls.
Ruby documentation - https://docs.snowplow.io/docs/collecting-data/collecting-from-own-applications/ruby-tracker/configuring-how-events-are-sent/
Reference - https://gitlab.slack.com/archives/CL3A7GFPF/p1703696353907669?thread_ts=1703128463.325039&cid=CL3A7GFPF
Desired Outcome
Ruby SDK should be able to handle multiple http requests concurrently.
Potential Solution
Update event method to post
and provide buffer_size
to number of events to send in batches.
How to verify
Try sending 1000s of events at the same time and verify the behaviour.