-
-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
The shortcoming you see
Currently, ruma-client never retries failed requests. Implementing retries on top of ruma-client means re-serializing requests, which is not ideal.
The improvement
Make it easier to do request retries w/o serializing the same request again, in one of these ways:
- Direct support
- pro: Makes it easy to use ruma-client in a more robust way
- con: Larger API surface
- Callback API
- pro: Smaller API surface
- con: Kind of ugly API?
- Enhancing ruma-client's
Errortype (making the serialized request accessible from it)- pro: Maximally flexible
- con: Also somewhat ugly?
I'm currently leaning towards option 3, but I'm not really certain.
edit: Option 3 also allows adding option 1 on top later.
ShadowJonathan
Metadata
Metadata
Assignees
Labels
No labels