-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Support for JSON Smile format for EventReceiverFirehoseFactory #1622
Conversation
@nishantmonu51 Do you have data on how much it impacts performance? |
@@ -115,6 +132,8 @@ public int postEventsFromFile(String file) | |||
); | |||
String s; | |||
Collection<Map<String, Object>> events = new ArrayList<Map<String, Object>>(); | |||
// Test sending events using both jsonMapper and smileMapper. |
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.
Can you explain this more?
Support for Smile format for EventReceiverFireshoseFactory. would help in decreasing network load on middle managers ingesting high data volumes. review comments
52a1244
to
e6b20db
Compare
the major improvement this PR does is improvement in network usage and would help in conserving bandwidth when we run multiple peons in the same machine. |
? MediaType.APPLICATION_JSON | ||
: SmileMediaTypes.APPLICATION_JACKSON_SMILE; | ||
totalEventsPosted += postEvents(events, mapper, mediaType); | ||
; |
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.
extraneous semicolon
👍 lgtm. Compression could be cool too in the future, as I recall from testing things in Kafka that smile-lz4 was a good combination of cpu and size. |
Support for JSON Smile format for EventReceiverFirehoseFactory
Support for JSON Smile format for EventReceiverFireshoseFactory.
would help in decreasing network load on middle managers ingesting high
data volumes.