Friday, June 3, 2016

Understanding Spring Enterprise Intregation

It is a lightweight messaging solution that will add integration capabilities to our spring application. As a messaging strategy, it provide a way of sharing information quickly and with the high level of decoupling between the involved components or applications.

It allows us to 

  1. Allows communication between the components within our application using the in-memory messaging. Which allows this components to be loosely coupled and share the message using the message channel.
  2. It also allows us to communicate with external system. Here we just need to send the information and spring integration will take care rest of it, if response is necessary then it will also take care of that.
The advantages of using EI are: 
  1. Loose coupling within the components
  2. Event Oriented Application
  3. Integration logic is separated from the business logic.





References::
1. JavaCodeGeeks

Difference between the Hadoop HDFS and Google GFS

In Hadoop, the reducer is presented with a key and an iterator over all values associated with the particular key. The values are arbitrarily ordered.

Google's implementation allows the programmer to specify a secondary sort key for ordering the values (if desired) in which case values associated with each key would be presented to the developer's reduce code in sorted order.

Some of the key differences are listed below:

HDFS
  • Initiated by yahoo and later on made open source
  • Developed in Java
  • it consists of NameNode and DataNode
  • default block size is 128 mb
  • it follows WORM model : write once read multiple
  • deleted files are renamed into particular folder and are removed by the garbage
  • reducer can emit arbitrary number of key value


GFS
  • Developed by Google Inc.
  • Developed in C++(most likely)
  • it consists of MasterNode and Chunk Server
  • default block size is 64 mb
  • multiple read and write is possible
  • deleted nodes are hide and are removed if not used more then 3 days
  • programmer are not allowed to change the key in the reducer i.e. reducer input key must be the same as in the output