問題文
A retailer must connect a modern product that exposes a REST API to another that offers only a SOAP interface, plus a supplier feed delivered as files. How should the architect reason about protocols in the integration?
選択肢
- Force each system to use REST even where it only offers SOAP or files, because a single protocol must be imposed across all endpoints and any system that cannot natively speak REST should simply be excluded from the integration entirely.
- Use manual file handling for all three because protocols do not matter, so somebody downloads from the REST endpoint, retypes the SOAP payload, and forwards the supplier's file onward once a day by hand.
- Refuse to integrate systems that use different protocols.
- Match each connection to the protocol the endpoint offers—REST, SOAP, or a file transfer such as SFTP—and let the integration layer bridge between them, rather than forcing one protocol everywhere.