Abstract Your API
Published 📅: ....
Last modified 📝: ....
Share this post on BlueskySee discussion on Bluesky
This blog post is meant as a response to this article by Tom MacWright: https://macwright.com/2024/06/21/apis-and-applications.
TL;DR
Release a library that handles the business logic, pull into both your api service and application service.
I haven’t necessarily needed to solve for this problem directly yet, but the first thought that came to mind is abstraction. Specifically abstracting away the core business logic of your API into a layer that both your API and your Application can share.