Setting up backpane with Aspire + Azure Redis + Entra Auth #256
Closed
onionhammer
started this conversation in
General
Replies: 1 comment 8 replies
-
Ah nevermind, I see now.. Configuration is just a string. I guess the real question is - so it looks like something like this might work: cacheBulder.WithBackplane(sp =>
{
var logger = sp.GetRequiredService<ILogger<RedisBackplane>>();
var multiplexer = sp.GetRequiredService<IConnectionMultiplexer>();
var options = new RedisBackplaneOptions()
{
ConnectionMultiplexerFactory = () => Task.FromResult(multiplexer),
};
var result = new RedisBackplane(options, logger);
return result;
}); But I would love recommendations on the 'proper' way to do this |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I've written the following extension methods to try to connect together the components for FusionCache to utilize the same connection as the distributed redis cache
The first is to add an IConnectionMultiplexer which utilizes the ConfigureForAzureWithTokenCredentialAsync
The second is meant to add the fusion cache and utilize the IConnectionMultiplexer
First question: Is this sound? Am I missing something here?
If not, I'm seeing the following error from the backplane in the logs; things seem to work fine locally, however..
"The message timed out in the backlog attempting to send because no connection became available (5000ms) - Last Connection Exception: AuthenticationFailure"
The redis distributed cache layer appears to work but the backplane doesnt
Code
Beta Was this translation helpful? Give feedback.
All reactions