Has anyone had experience in designing and implementing a system with the ability to call asynchronous interfaces from external systems? Can you help to review this design concept and identify any unnecessary aspects?
- My Design objective:
Create an asynchronous calling module. - One is to be able to activate any external system asynchronous interface. Use the asynchronous call interface address externalSystemInterface provided by the external system as a variable property. Requesting an asynchronous interface from an external system, receiving the callback result from the external system, and processing it. The processing method varies depending on the actual business, so this processing process is regarded as a variable method. When there is a new requirement for calling asynchronous interfaces, quickly develop a scenario that can call external asynchronous interfaces by configuring variable properties and variable methods. I have added some logic for failed re tuning and drawn the following call sequence diagram:sequence diagram
- The second is to provide asynchronous interfaces for external systems based on different business scenarios. Create asynchronous interfaces that can be called by external systems, and set the interface address based on business conditions. Therefore, the interface address Asynchronous Interface is used as a variable property. The business processing logic of the Interface DealLogic is determined based on the business situation, and therefore serves as a variable method. After processing, make the external response into a callback interface called Asynchronous Call.sequence diagram
I have analyzed the process of asynchronous calling and designed relevant timing diagrams, but this is only a preliminary idea. I am not sure if there are any imperfections. I hope to receive guidance from netizens, such as determining which processes in the timing diagram designed above are unnecessary in the production environment