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

Configurable of timeout for API endpoints #917

Open
McSurf84 opened this issue Sep 1, 2021 · 0 comments
Open

Configurable of timeout for API endpoints #917

McSurf84 opened this issue Sep 1, 2021 · 0 comments

Comments

@McSurf84
Copy link

McSurf84 commented Sep 1, 2021

Improvement

The timeout should be configurable for API endpoints via franklin configuration options.

Notes + Context

Example:I try to create a mosaic with more than 100 items, but after 30 seconds the mosaic creation request is canceled (503 Server Error: Service Unavailable).
@jisantuc mentioned two possibilities in gitter:

  • add configuration option
  • move the histogram calculations to a background process and expose the status of histogramm creation via websocket

Original conversation:
Ralf Wohlfahrt @McSurf84 Aug. 31 16:35
Can I increase the timeout of the franklin application? I try to create a mosaic with more than 100 items, but after 30 seconds the mosaic creation request is canceled (503 Server Error: Service Unavailable).

James Santucci @jisantuc:matrix.org [m] Aug. 31 17:02
not right now, but that's a pretty easy configuration option to add. can you open an issue? i'll add it to the first release milestone. right now we don't configure the timeout at all. another thing that's pretty easy to do is to move the histogram calculations to a background process. i didn't do that initially because it means the response will have to be a 202 and you'll have to learn that the histograms are "ready" somehow, but if you have some expectations about that information it's also not that difficult. the server could expose a websocket under the mosaic id or something?

@jisantuc jisantuc added this to the First tagged release milestone Sep 1, 2021
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