Message Translator Pattern
Learn Message Translator Pattern (Message Routing & Transformation Patterns, Integration & Messaging Patterns) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.
What is the Message Translator Pattern? A Message Translator converts a message from the format/schema one system produces into the format another system expects, so two systems with different data contracts can still communicate without either one adapting to the other directly. Common Translation Needs • Different field names/casing between systems ( customer_id vs customerId ). • Different serialization formats (XML vs JSON vs Avro). • Different units or value representations (cents vs dollars, ISO date strings vs epoch millis).