Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Why is Ocelot requesting for 1-2 minutes using the https protocol in an IIS environment? #1691

Closed
songlin-q opened this issue Sep 12, 2023 · 6 comments
Assignees
Labels
IIS Internet Information Services (IIS) for Windows® Server question Initially seen a question could become a new feature or bug or closed ;)

Comments

@songlin-q
Copy link

Ocelot in IIS environment, using https protocol for request, request 6-7 times, it will be lagged, each time the waiting time is about 1-2 minutes

@raman-m
Copy link
Member

raman-m commented Sep 14, 2023

😁
You are not alone! See: IIS issues

@raman-m
Copy link
Member

raman-m commented Sep 14, 2023

Hi Q!
Thanks for your interest in Ocelot!

I would say, Ocelot is not optimized for IIS deployments and it is not recommended to deploy Ocelot app to IIS. Also, we have some IIS Gotchas. 😸
Such kind of custom environment requires a special ASP.NET MVC pipeline settings to run successfully. Each version of .NET framework requires special setup of ASP.NET MVC pipeline to support IIS. You haven't described your IIS version and .NET version and Ocelot version!
To be fair, IIS has a vast and unstable pipeline, which is based on IIS modules and handlers, and which is better optimized for ASP.NET Web apps with frontends (aka Razor, Blazor), not just ASP.NET Wen API apps. Yes, we can host Web API apps in IIS environment but this scenario has overheads.
I would recommend you to deploy to Kestrel web server (self-hosting), Docker or public cloud providers like Azure.

Tell me please,
Why do you use IIS for Ocelot app deployments?

@raman-m raman-m added question Initially seen a question could become a new feature or bug or closed ;) waiting Waiting for answer to question or feedback from issue raiser labels Sep 14, 2023
@raman-m
Copy link
Member

raman-m commented Sep 14, 2023

Regarding slow response from IIS...

Ocelot in IIS environment, using https protocol for request, request 6-7 times, it will be lagged, each time the waiting time is about 1-2 minutes

It seems, developer from #1657 had the same problem of slow responses. The problem could be wrong usage of InProcess setup for IIS. So, Out-of-process hosting model must be used for IIS deployments!!!

Read these docs:

@songlin-q
Copy link
Author

Thank you for your reply

@raman-m
Copy link
Member

raman-m commented Sep 15, 2023

Hi @qs991 !
Did my reply help you?
Can we close the issue?

@sunilnetin
Copy link

Hi

@raman-m raman-m added the IIS Internet Information Services (IIS) for Windows® Server label Oct 30, 2023
@raman-m raman-m changed the title Ocelot is requesting using the https protocol in an IIS environment. Why is Ocelot requesting for 1-2 minutes using the https protocol in an IIS environment? Oct 30, 2023
@raman-m raman-m removed the waiting Waiting for answer to question or feedback from issue raiser label Oct 30, 2023
@ThreeMammals ThreeMammals locked and limited conversation to collaborators Oct 30, 2023
@raman-m raman-m converted this issue into discussion #1765 Oct 30, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
IIS Internet Information Services (IIS) for Windows® Server question Initially seen a question could become a new feature or bug or closed ;)
Projects
None yet
Development

No branches or pull requests

3 participants