Scrivio Interview library
LeadershipPrincipal7 min read · updated 12 November 2026

A widely used actor framework changed its licence in 2022, and a community fork followed. What does this teach about betting on concurrency frameworks that shape your application code for many years?

The lesson is that a framework which shapes how all our code is written is not a library we can swap later; it is a long-term partnership with whoever controls the project. When Akka moved from the Apache 2.0 licence to a source-available business licence in 2022 and the community answered with the Apache Pekko fork, teams learned that exit costs, licence terms and governance must be part of the original decision, not an afterthought.

Why this question is asked

Most dependency choices are small: if a JSON library disappoints us, we replace it in a week. Concurrency frameworks are different because they decide how every service is written, how errors travel and how we test. Interviewers ask senior engineers this question to see whether they think about technology choices across a decade, and whether they can turn a painful industry event into practical rules for their own organisation. In this answer, we will recap what happened, explain why such frameworks are so expensive to leave, look at how licences and governance create risk, and then go through the habits that reduce that risk: isolation behind our own interfaces, preferring JDK primitives when they are enough, and watching the health of critical dependencies.

1A Quick Recap of What Happened

Akka is an implementation of the actor model for the JVM. An actor is a small object that owns its state and talks to the rest of the system only by receiving and sending messages, one message at a time, so we never share mutable state between threads. Akka added clustering, persistence and streams on top, and many companies built whole platforms on it.

In September 2022 the company behind Akka changed new releases from the permissive Apache 2.0 licence to the Business Source License 1.1. Under the new terms, production use by larger organisations requires a paid commercial licence, and each release only converts back to an open licence after a few years. Existing releases stayed under Apache 2.0, but every future fix, including security fixes, came under the new terms.

Shortly after, a group of contributors forked the last Apache-licensed version under the Apache Software Foundation and named it Apache Pekko. Teams that did not want to pay now had a choice: pay, freeze on an old version, or migrate to the fork. All three cost money and time, and none of them had been in anyone's plan.

2Why Structural Frameworks Have High Exit Costs

Some dependencies sit at the edge of our code. A logging library is called through a small facade, and we could replace it with a script. A concurrency framework sits at the centre. With actors, our business logic lives inside actor classes, our services talk through actor references, our failure handling uses supervision trees, and our tests use the framework's test kit. The framework is the shape of the code.

So the cost of leaving grows with every line written in its style. A team with 40 services written as actors cannot swap the runtime in a sprint. Even a near drop-in fork like Pekko needed package renames, configuration key changes, dependency upgrades across the build and a full regression run. Moving off actors entirely would mean rewriting the core of each service.

Exit cost by how deeply a dependency shapes the code
Kind of dependencyWhere it appearsTypical cost to replace
Utility library (JSON, HTTP client)A few adapter classesDays
Persistence framework (JPA)Entities, repositories, queriesWeeks to months
Concurrency framework (actors, reactive)Every service's control flow and testsMonths to years
JDK primitives (executors, queues)Standard API, part of the platformRarely needs replacing
The deeper a framework shapes the code, the more its licence and governance matter.

3Licences and Governance Can Change

A licence is not a permanent property of a project. When a single company owns the copyright and the trademark, it can change the terms for future versions whenever its business needs change. The company is not doing anything wrong; it has to pay its engineers. But our risk is real, because our plans assume terms we do not control.

Governance is the counterweight. Projects held by a foundation, such as the Apache Software Foundation or the Eclipse Foundation, have rules that make a licence change very hard: the code is owned by the foundation, decisions are made by a group of maintainers from different employers, and the licence is part of the foundation's charter. That does not make them immortal, since a foundation project can still lose its maintainers, but it removes the risk of one company changing the deal.

Notice what Pekko itself shows: it moved to a foundation precisely so that this could not happen again. When we evaluate a framework, we should ask the same questions its users asked in 2022. Who owns the copyright? Is there a contributor licence agreement that lets one party relicense? How many employers do the active maintainers work for?

4Isolating Framework Code Behind Our Own Interfaces

We cannot avoid all coupling, but we can keep framework types out of the code that matters most. The usual approach is to let business logic depend on our own small interfaces, and to put the framework behind an adapter.

Java
// Domain code depends on our interface, not on the actor framework
public interface OrderProcessor {
CompletionStage<OrderResult> submit(PlaceOrder command);
}
// One adapter knows about the framework
final class ActorOrderProcessor implements OrderProcessor {
private final ActorRef<OrderActor.Command> actor; // framework type stays here
public CompletionStage<OrderResult> submit(PlaceOrder c) {
return AskPattern.ask(actor, reply -> new OrderActor.Submit(c, reply), timeout, scheduler);
}
}
// A second adapter can be written with plain JDK code if we ever leave
final class ExecutorOrderProcessor implements OrderProcessor {
private final ExecutorService pool = Executors.newVirtualThreadPerTaskExecutor();
public CompletionStage<OrderResult> submit(PlaceOrder c) {
return CompletableFuture.supplyAsync(() -> handler.handle(c), pool);
}
}

The callers only ever see OrderProcessor, so they do not change if the adapter changes. This does not make a migration free, because the actor's internal behaviour still has to be rewritten, but it shrinks the area we must touch from the whole codebase to a known set of classes.

But there is a catch: isolation has a price too. If we wrap every framework feature, we lose the features that made us pick it, such as supervision or cluster sharding. So we isolate where it is practical, at service boundaries and around business logic, and accept direct use in a small, well-marked infrastructure layer.

5Preferring JDK Primitives When They Are Enough

The JDK is the most stable dependency we have. Executors, CompletableFuture, BlockingQueue and, since JDK 21, virtual threads are maintained by the OpenJDK community, licensed under the GPL with the Classpath Exception, and backed by a long compatibility record. Code written against them in 2010 still compiles.

Many systems adopted actors to get cheap concurrency and isolation of state. Virtual threads now give us cheap blocking concurrency, and a single-threaded executor with a queue gives us a simple actor-like owner of state. So the question to ask before adopting a framework is: what does it give us that these primitives do not? If the answer is clustering, location transparency or persistent actors, the framework may earn its place. If the answer is only concurrency, the JDK is usually enough.

Step throughDeciding whether a structural framework is worth it
  1. Can JDK primitives meet the need?executors, virtual threads, queues
    YesUse the JDK; no new structural dependencyNoLook at the framework's governance
  2. Is it foundation-governed with many maintainers?Apache, Eclipse, CNCF
    YesLower licence risk; still isolate itNoPlan for a licence or owner change
  3. Isolate framework types behind our interfacesadapters at service boundaries
  4. Record the decision and review it yearlymaintainers, releases, licence

4 steps in order. Play them, or step through them one at a time.

6Tracking the Health of Critical Dependencies

The teams that coped best in 2022 were the ones who saw it coming or at least noticed quickly. A short, regular review of our most important dependencies makes that normal rather than lucky. For each one we look at who maintains it and for which employers, how often releases and security fixes ship, whether the licence or contributor agreement changed, and how many of our services use it.

A good habit is to keep this as a living list owned by the architecture group and reviewed once or twice a year. Then, if a licence changes, we already know which services are affected and roughly what a migration would cost, because we wrote it down when we adopted it.

7Follow-up questions

Would you still choose an actor framework today?

Yes, for the right problem. If we need stateful entities spread across a cluster, with sharding and supervision, an actor framework still saves a lot of work, and a foundation-governed option such as Pekko lowers the licence risk. For ordinary request-response services, I would start with virtual threads and plain JDK concurrency, because they cover the need with no structural dependency.

Is paying for a commercial licence a bad outcome?

Not necessarily. Paying can be cheaper than migrating, and it funds the people who maintain the code. The bad outcome is being forced into the choice with no budget and no plan. If we had treated the vendor as a strategic supplier from the start, a licence change would be a procurement discussion rather than an emergency.

8Conclusion

In this answer, we saw that the 2022 change of Akka's licence and the Pekko fork were not a story about one project but about structural dependencies in general. Frameworks that define how all our code is written have very high exit costs, and licences and governance can change under us, especially when one company controls a project. We reduce the risk by isolating framework code behind our own interfaces, preferring JDK primitives such as executors, virtual threads and queues when they are enough, favouring foundation-governed projects, and tracking maintainers, release cadence and licence for every critical dependency.

What to say in the interviewAbout 80 seconds aloud

Open with

The main lesson I take from the Akka licence change and the Pekko fork is that a concurrency framework is not a normal library. It shapes how every service is written: the business logic lives in actors, failures go through supervision, tests use the framework's toolkit.

Then, if they want more

So the exit cost is huge, and teams found out that their plans depended on licence terms they did not control. A company that owns a project can change the licence for future versions, and that includes security fixes. Foundation projects like Pekko under Apache are much less exposed to that. In practice I would do four things.

First, before adopting such a framework, ask what it gives us that JDK primitives do not. With virtual threads, executors and queues, plain Java now covers most concurrency needs. Second, if we do adopt it, keep framework types behind our own interfaces at service boundaries, so business code depends on something we own.

Third, check governance up front: who owns the copyright, how many employers the maintainers work for, and whether there is a foundation. Fourth, keep a short list of critical dependencies and review maintainers, release cadence and licence once or twice a year, so a change is a planned decision and not an emergency.

About this answer

Last updated
12 November 2026
Versions it names
Java 21
Checked
Its structure and format are checked automatically. Use it as a carefully prepared study note: where a detail matters, confirm it against the official documentation for the version you use. What the checks cover
Where the question comes from
Written by Scrivio for practice. It is not taken from an interview.
Report an issue with this answer

Copy the line below and send it to the author with what you found. It carries the address of this page.

Issue with "A widely used actor framework changed its licence in 2022, and a community fork...": https://scrivio-interview-library.netlify.app/java/concurrency-patterns/57416f659f/