Each instance of my application module [default] needs to load data from the datastore into local memory (for performance/cost reasons), where it will be read-only.
A separate module updates the data in the datastore [updater], and the data needs to be refreshed (entirely) in each default instance every several minutes (preferably when the data is updated by the updater module).
Loading the data into instance memory takes more time than is reasonable for a single user request.
I would have used a thread (goroutine) with a background context to reload the data in each [default] instance, but background context is not supported in automatically scaled modules.
How should I update each [default] instance's memory when the data is updated by the updater module?
I am using the go runtime environment.