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

Support for JSON Smile format for EventReceiverFirehoseFactory #1622

Merged
merged 1 commit into from
Aug 27, 2015

Conversation

nishantmonu51
Copy link
Member

Support for JSON Smile format for EventReceiverFireshoseFactory.
would help in decreasing network load on middle managers ingesting high
data volumes.

@nishantmonu51 nishantmonu51 added this to the 0.8.2 milestone Aug 13, 2015
@drcrallen
Copy link
Contributor

@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.
Copy link
Contributor

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
@nishantmonu51
Copy link
Member Author

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);
;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

extraneous semicolon

@gianm
Copy link
Contributor

gianm commented Aug 26, 2015

👍 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.

drcrallen added a commit that referenced this pull request Aug 27, 2015
Support for JSON Smile format for EventReceiverFirehoseFactory
@drcrallen drcrallen merged commit 10af233 into apache:master Aug 27, 2015
@drcrallen drcrallen deleted the smile-eventreceiverfirehose branch August 27, 2015 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants