Conclusion: Implementing a Web Adapter

Let's recap the importance of a web adapter and how it can help in writing maintainable software.

How does this help me build maintainable software?

When building a web adapter for an application, we should keep in mind that we’re building an adapter that translates HTTPHypertext Transfer Protocol method calls to use cases of our application and translates the results back to HTTPHypertext Transfer Protocol, and does not do any domain logic.

The application layer, on the other hand, should not do HTTPHypertext Transfer Protocol, so we should make sure to not leak HTTPHypertext Transfer Protocol details. This makes the web adapter replaceable by another adapter should the need arise.

Get hands-on with 1400+ tech skills courses.