Multiple ChoiceHard 45s
DIP at boundaries
Where should the port interface for a third-party payment gateway be *declared* in a hexagonal architecture?
Options
- 1In the infrastructure adapter, so the gateway SDK can be imported freely
- 2In a shared package that both core and adapter import at the same level
- 3In the application/core layer, so the core owns the contract and adapters depend inward
- 4In the third-party SDK itself, to avoid duplication
Think you can answer under pressure?
Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.