Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

retries? #31

Open
brandonmp opened this issue Jan 29, 2017 · 3 comments
Open

retries? #31

brandonmp opened this issue Jan 29, 2017 · 3 comments

Comments

@brandonmp
Copy link

Is it possible to configure Lokka to retry upon failed connections? The built-in retries and timeouts on the relay network layer are quite handy, wasn't sure if that was possible with Lokka.

@evans
Copy link

evans commented Aug 8, 2017

@brandonmp it seems that Lokka doesn't have this type of functionality. If you are looking for a similar lightweight client, apollo-fetch is a client that can support an afterware that retries a failed request.

If you are looking for something that supports retries out of the box with more room for extensibility, an Apollo Link network stack can retry failed requests. This documentation describes how to create a network stack that can retry a request.

Let me know if you have any questions or are looking for some other behavior.

@brandonmp
Copy link
Author

thanks @evanshauser --i really should get more familiar w/ the apollo ecosystem

re: the OP, i actually ended up throwing together a quick/dirty network layer for Lokka with retry built-in. should've mentioned it here but forgot all about this post

https://github.com/brandonmp/lokka-transport-http

@brandonmp
Copy link
Author

ps--way to hustle, intern! keep up the good work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants