> To still let TaskExecutorImpl making "safe clones", a functionality to
get (fresh) instances of RealmContext is required. To enable this, the
RealmContextResolver has been enhanced with "RealmContext lookups" by
realm-ID. That in turn led to splitting the HTTP/REST-to-realm-context
resolution into two parts: HTTP/REST-to-realm-ID and realm-ID-to-context.

I'm not sure whether this refactor is beneficial. Avoiding the copying of a
CDI bean would require introducing a global RealmContext map to maintain
the mapping between realmId and RealmContext instances. That feels heavier
and more complex than simply copying the context whenever needed.

Yufei


On Tue, Aug 12, 2025 at 6:18 AM Robert Stupp <sn...@snazy.de> wrote:

> Hi all,
>
> quick heads up that there's a PR to remove CallContext.copy(), which
> is only used from tasks. This change is also part of the effort to
> have async & reliable tasks running "anywhere".
>
> Robert
>
> [1] https://github.com/apache/polaris/pull/2294
>

Reply via email to