ItsEcholot / ContainerNursery

Puts Docker Containers to sleep and wakes them back up when they're needed
MIT License
94 stars 6 forks source link

Hang request ? #57

Open maxime1992 opened 5 months ago

maxime1992 commented 5 months ago

Hello,

I'm currently looking for all my options before trying to implement one.

I'd like to start using yours but there's one question remaining: is it able to hang requests instead of serving a loading page ?

Something similar to https://acouvreur.github.io/sablier/#/strategies?id=blocking-strategy

I'm asking this because I access some of my apps through Android apps so serving an html page while loading wouldn't help. Is that working automatically somehow ? Is it configurable ?

Thanks a lot for the project it looks great !

ItsEcholot commented 5 months ago

Sadly delaying responses isn't supported currently, I'm pretty sure it wouldn't be that hard to implement actually and a good idea. The only problem one would have to consider is that if there is a docker container which takes a long time to become ready, the client (or even another reverse proxy in front of ContainerNursery) could run into timeouts.

Anyways, I sadly currently don't have the bandwidth for this issue. But I would accept a PR for this if anyone wants to give it a shot.