question

NikhilKumar-2256 avatar image
0 Votes"
NikhilKumar-2256 asked Bruce-SqlWork answered

MSMQ in .NET 6

In.NET 6 (C# 10), I'm creating a console/worker service. In order to store and retrieve messages, I intend to use Microsoft Message Queuing. Like when one service queues up a message and another service retrieves it from the queue. Recently, I read that MSMQ would no longer be supported in.net core. Is it real? any additional service we might utilize for the same purpose (other than Azure).

dotnet-aspnet-core-generaldotnet-cli
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

Bruce-SqlWork avatar image
0 Votes"
Bruce-SqlWork answered

as MSMQ is a windows only feature, so can not be converted to .netstandard, nor has it been ported to .net core. Although there is no official statement, it appears to be dead. see:

https://github.com/dotnet/runtime/issues/16409#issuecomment-541875447

if you need to use it, my recommendation is create .net 4.8 webapi wrapper to MSMQ and use a web hooks approach.

for a non cloud solution, rabbitmq is the most popular:

https://www.rabbitmq.com

you might want to look a sql server broker services, it probably has the features you need:

https://docs.microsoft.com/en-us/sql/database-engine/configure-windows/sql-server-service-broker?view=sql-server-ver16




5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.