Fork me on GitHub
#integrant
<
2023-11-04
>
Ovi Stoica06:11:51

I have a usecase for refreshing just one component from my system. The component is a grpc client that receives a 1 hour lease (token) and if that expires, it needs to be refreshed. I was thinking that I should be idiomatic and keep that inside integrant system but I can’t find a way to refresh that dependency at runtime. Anybody has an ideea? Should I just keep an atom with just that lease, outside of integrant?

weavejester13:11:18

Yes, that should be outside of Integrant, IMO. Integrant handles initiating and halting components; refreshing a token is outside that scope.

👍 1