Our company runs applications on a Micro Service architecture that includes thousands of services. I am working on a backend application “X” that talks to 50+ services. Frontend services call my service “X” to execute requests on other services.
Front end wants to show user friendly messages when something fails on other services.
- Other services do not return user friendly messages. It is not possible for me to request changes by other teams as there are several.
- There are no agreed error codes as such. Other services return a string error message. Currently, it is passed back to the UI. Sometimes the error messages are a pointer references (bad code :/)
Check for error message string and have a mapping in my service to a user friendly message. But things can break if the callee service changed their error message. Fallback to a default error message when a custom error mapping is not found.
Any more ideas on scalable and sustainable solution? Thanks!
Ten-tools.com may not be responsible for the answers or solutions given to any question asked by the users. All Answers or responses are user generated answers and we do not have proof of its validity or correctness. Please vote for the answer that helped you in order to help others find out which is the most helpful answer. Questions labeled as solved may be solved or may not be solved depending on the type of question and the date posted for some posts may be scheduled to be deleted periodically. Do not hesitate to share your response here to help other visitors like you. Thank you, Ten-tools.