jeudi 19 novembre 2015

Design pattern for different kind of input messages

I am writing a service which can receive input messages in different formats like json, xml, csv etc. Though messages are in different format but data is similar in all of them. Which design pattern should i use to achieve following:

  • Should be able to add new message format without changing existing code.
  • Convert different message formats into a uniform format to be consumed by core service for processing.

Thanks, Suraj

Aucun commentaire:

Enregistrer un commentaire