Skip to content

How bad would it be to ignore async features completely? #1842

Answered by jebrosen
bubelov asked this question in Questions
Discussion options

You must be logged in to vote

What would be the implications of treating Rocket as a traditional synchronous web framework? By that I mean calling strictly sync code from async handlers. The number of worker treads is configurable, so I can start Rocket with a lot of worker threads and give each thread a database connection. Would it be any worse than using synchronous web framework with the same number of working threads?

The best answer I can come up with is "It will be fine, until maybe it isn't". If active_db_operations is always less than worker_threads, I would not expect too many problems. As soon as you have more active database operations than the number of worker threads, you will start to see performance …

Replies: 2 comments 8 replies

Comment options

You must be logged in to vote
5 replies
@the10thWiz
Comment options

@bubelov
Comment options

@bubelov
Comment options

@the10thWiz
Comment options

@bubelov
Comment options

Comment options

You must be logged in to vote
3 replies
@bubelov
Comment options

@jebrosen
Comment options

@bubelov
Comment options

Answer selected by bubelov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants