Closed tugberkugurlu closed 8 years ago
but do you want to find out that something is wrong at startup time - or some time later?
some time later. In my case, it will blow up 80% of the time for me unless I do some horrible hacks :smile:
If not acceptable to do this by default, it would be good to have an option to evaluate everything lazily through options.
I like the idea of having an option for lazy loading...PR? ;)
yep, will send one.
I was about to suggest the same thing. At least in my apps, it's not ok for this to prevent application from starting. I would very much want the protected resources to return 401 until the authority is up and let everything else work (including health monitoring, etc...).
yep agreed it would be useful to have an option for lazy loading - but I won't have resources to implement it any time soon.
PR anyone? :)
I will do that.
Can this be closed now?
There is a delay load option now. — cheers Dominick Baier
It currently tries to connect to authority in several cases (I guess) and it blows up if the authority is not there at that time. This is especially a problem on the dev time like when you use docker compose to get your solution up and running and cannot guarantee which one will start before.
The solution would be to wrap the logic inside
Lazy
and reach out to its value on first request.