Skip to content

Instantly share code, notes, and snippets.

View mgpradeepa's full-sized avatar
:octocat:

mgpradeepa mgpradeepa

:octocat:
View GitHub Profile
@mgpradeepa
mgpradeepa / Spring_Integration_handbook.md
Created October 10, 2016 06:58
Spring Integration handbook from ref manual

Spring Integration framework.

Mainly focusses on the Enterprise Integration Application Framework. Design patterns are obtained and utilized as a integration solution from those.

One of the component is Message

Message is a generic wrapper for a java object combined with the metadata used by the framework. Payload & Headers are the key components of a message. Payload:- Can be of anything and any type data. Headers:-
Holds commonly required information like id, time_stamp, correlation_id and return address.

@mgpradeepa
mgpradeepa / Parallelism in map-reduce.md
Last active August 7, 2018 04:42
Think on parallelism

In the distributed world, while writing map-reduce codes, there are many situations where the input data seems to be non partitiionable. In which case all the data though would be picked up by multiple mappers, it gets mapped to the same key. Once all the mappers are run and if we end up in having one key with huge list of values, then we would be burdening the reducers. When I say burdening reducers it invovles burdening all the steps after mapper till the data enters the reducer nodes.

Lets take an example to deal more on this situation and see how this can be resolved.

Challenge: Finding of average of natural numbers.

Bird-view: