Skip to content

How to optimize Ocelot startup time? #1857

Answered by raman-m
heizel184 asked this question in Q&A
Discussion options

You must be logged in to vote

@heizel184

How to optimize Ocelot startup time?

Just keep all routes in one file!
To be fair, I don't understand creation of a separate file for each route! It is strange. You could use another merging strategy: for example create separate file for each downstream host to keep all routes to this downstream service in one .json file. I believe your number of files will decrease in times.
But we are working now on your user scenario when there are a lot of tiny files... We will try to check Ocelot behavior having 50-100 files in configuration. Please watch this PR: #1856

Replies: 4 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@raman-m
Comment options

Answer selected by raman-m
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
Configuration Ocelot feature: Configuration
3 participants
Converted from issue

This discussion was converted from issue #1526 on December 19, 2023 10:45.