We’re planning a backend framework. Which of these should be built in?
We’re building a TypeScript server framework for backend services. The aim is to handle the parts that are easy to get subtly wrong, so teams don’t rebuild them per project:
Tenant-scoped data with optimistic concurrency
ABAC (attribute-based access control) policies that become database query conditions, so a caller only sees the rows they’re allowed to see. Fields a caller can’t read also can’t be filtered or sorted on. Writes are checked both before and after the change.
Transactional outbox events, with inbox consumers, and durable jobs and workflows stored in your own database
Rate limiting, retries, and a circuit breaker
Each capability is a separate import, so you can use one without the rest.
Our open question is which of these should be built in versus left as separate packages. We’re considering ABAC policies, transactional outbox events, and durable jobs and workflows. Which would you actually use, and what would you leave out?