You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
The current persister interface is synchronous. This can cause performance issues in asynchronous code.
Describe the solution you'd like
We should have a separate stack for asynchronous persistence -- ideally with modes for either (1) fire-and-forget or (2) blocking/transactional (depends on how consistent the user wants it -- this part might be general persister configuration, rather than async-specific).
To dig in, we will need:
Persistence interfaces for this (BaseStateLoader, BaseStateSaver, PersisterHook) -- each converted to async
A few default implementations (SQLLite, redis? TBD -- go with the easy ones on this)
Integrations with application
asynchronous build() method in application builder (.abuild()) - or maybe another builder? Guess is we want an asynchronous build method
validation in .run() -- E.G. if you have async hooks they will not be called -- at least a warning message if not an error
Comprehensive testing for ^^^
Think through integration with parallel actions --- will want an acreate_apphere.
Describe alternatives you've considered
Could have synchronous fire/forget mode, although we very likely want something transactional.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
The current persister interface is synchronous. This can cause performance issues in asynchronous code.
Describe the solution you'd like
We should have a separate stack for asynchronous persistence -- ideally with modes for either (1) fire-and-forget or (2) blocking/transactional (depends on how consistent the user wants it -- this part might be general persister configuration, rather than async-specific).
To dig in, we will need:
BaseStateLoader
,BaseStateSaver
,PersisterHook
) -- each converted to asyncapplication
build()
method in application builder (.abuild()
) - or maybe another builder? Guess is we want an asynchronous build method.run()
-- E.G. if you have async hooks they will not be called -- at least a warning message if not an erroracreate_app
here.Describe alternatives you've considered
Could have synchronous fire/forget mode, although we very likely want something transactional.
The text was updated successfully, but these errors were encountered: