Start From ABP When You Own the Product Shape
A framework that ships identity, permissions, and a module system saves months on a new product. The same framework becomes a second kernel on a platform that already has one. I decide which case I am in before I write the first module.
Every new .NET product needs the same foundation before it can do anything useful: sign-in, roles and permissions, an audit trail, background jobs, localization, and a clean way to swap infrastructure such as payment providers. Writing that foundation by hand costs weeks and adds nothing customers see. Bolting a second foundation onto a platform that already has one costs more, because now two systems disagree about who issues tokens and who owns a transaction.
I work on both shapes. One is a delivery dispatch platform built on ABP Framework, with a PostgreSQL database and an Angular admin. The other is a microservices platform with its own gateway, identity server, and shared kernel. Only the first one should be ABP.
This article is for .NET engineers and leads choosing a starting point for a product. It explains what ABP actually buys you, how I use its module system, and the signals that tell me to leave it out.
What ABP gives a product on day one
ABP is a product kernel, not a UI kit. On an ABP-backed product the domain module depends on ABP's identity and OpenIddict modules, permission management, feature and setting management, audit logging, background jobs, and blob storage. The host adds Autofac, OpenAPI, and an admin theme.
That list replaces work I would otherwise schedule in the first month:
- Identity and tokens. Users, roles, and an OAuth server for the admin and API clients.
- Permissions. Declared in code, granted in the admin UI, checked with one attribute.
- Unit of work. One transaction per application service call, without passing a
DbContextaround. - Localization. Arabic and English resources built in, not retrofitted.
The time I save goes into the parts that make the product worth building: dispatch policy, delivery-fee rules, and payment webhooks.
A provider is a module the host opts into
ABP's module system is the feature I would miss most in a blank ASP.NET Core template. A module declares what it depends on and registers its own services. The host lists the modules it wants, and that list becomes the bill of materials.
I build each payment provider as its own module. It depends on the domain, registers itself in a provider list, and configures a typed HTTP client with resilience.
[DependsOn(typeof(CheckoutDomainModule))]
public sealed class CardPaymentsModule : AbpModule
{
public override void ConfigureServices(ServiceConfigurationContext context)
{
Configure<CheckoutOptions>(options =>
options.Gateways.Register<CardGateway>());
context.Services
.AddHttpClient<CardGateway>()
.AddStandardResilienceHandler();
}
}
The domain never references a provider class. It resolves one through a registry built from those options. A fake provider module follows the same pattern, so local runs and HTTP tests exercise the real checkout flow without calling a card network. To ship a build without a provider, I remove one module from the host's dependency list. There are no #if flags in checkout.
AI providers follow the same shape: a live module and a fake one, and the host chooses.
The framework stops where the domain starts
ABP gives plumbing. It does not decide how a courier is chosen or what happens when a delivery fails. I treat that boundary as a feature.
A good example is configuration. ABP's setting management stores string values, which suits simple toggles. Dispatch radii, offer windows, and ranking weights are a policy: they must be validated together, edited under a permission, and protected against two admins overwriting each other. So I model them as typed setting groups and use ABP's unit of work, encryption, distributed cache, and validation exceptions to build that module. I wrote about it in A Setting Is a Type I Can Load.
The same judgment applies to what I turn off. The template ships multi-tenancy, and I disabled it. Merchants and delivery zones are scopes inside one business, not separate tenants. Tenant filters on the business entities would have given the product the wrong isolation model. Being able to switch a framework feature off cleanly matters as much as the feature list.
When the platform already has a kernel, I extend it
The microservices platform is the counterexample. It already has a gateway, a dedicated identity server, and a shared kernel that owns base entities, result types, and a typed settings service. Each service has its own data mappings and its own unit of work.
Adding ABP there would not add capability. It would add a second answer to questions the platform already settled:
- ABP identity next to the existing identity server means two token issuers.
- ABP's unit of work next to the existing persistence layer means two transaction owners.
- ABP multi-tenancy on a platform whose isolation follows its own business partners forces a model the tables do not use.
Each of these can be configured away. ABP can validate tokens from an external identity server instead of issuing its own, and its unit of work can be left out of a service. But every module I strip to fit the existing platform is a module I adopted only to remove. Once identity, tenancy, and persistence are taken out, what is left is a dependency injection and module system the platform already has.
On that platform the right move is to extend the shared kernel. The typed settings pattern lives there as a service each microservice registers, not as an ABP module.
Other cases where I leave ABP out
- A small internal API. Three endpoints and one table do not need identity tables, permission management, and a module graph.
- A team on a deadline with a kernel they know. Rewriting a working kernel as ABP modules is a migration, not a feature.
- Microservices for their own sake. ABP has a microservice solution template, and it works. But each service then carries its own module graph, startup cost, and framework upgrades. When the product does not yet need independent deployment, I get more from ABP as a modular monolith and split later along module lines.
The check I run before the next app
| Signal | Start from ABP | Extend what exists |
|---|---|---|
| Identity and permissions | Not built yet | Already issued by a dedicated server |
| Deployment | One host, one database | Many services behind a gateway |
| Shared kernel | None | Owns entities, results, settings |
| Replaceable infrastructure | Needed (payments, AI) | Already abstracted |
| Domain | Still being shaped | Stable contracts between teams |
If most rows land in the first column, I start from ABP and spend my time on the domain. If they land in the second, I extend the kernel the platform already trusts. Both are .NET, and the choice depends on the platform I'm joining.