I'm not exactly sure how to configure rabbitmq's IConfiguration and IModel lifescopes in my .net core app.
According to the docs, the IConnection object should be longed lived, so I'm guessing this is a one time operation. For that I'm just creating a single instance and then re-use it (like a singleton).
My issues is with the IModel,
- how many should I create (what is the driven factor(s) that I have to take into account when creating this object)?
- again acording to the docs, it state that it should be long lived with a mention that it can be smaller then that of the IConnection instance from which it was created?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…