BlazorWorker
silverback
BlazorWorker | silverback | |
---|---|---|
6 | 10 | |
358 | 247 | |
- | - | |
7.8 | 7.1 | |
about 1 month ago | about 1 month ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
BlazorWorker
- Multithreading support pushed to .net 9
- Running a background process on a timer for Blazor WASM in .Net 6
- High CPU tasks and scaling
- Run background tasks in blazor wasm like worker
-
For client-side Blazor (WASM), how do you handle long-running, CPU-bound tasks?
I've given BlazorWorker a try in order to get this running in a separate thread/in the background, but it didn't seem to help here. Do I have any options other than to convert this to an ASP.NET hosted app and do the heavy lifting on the server?
-
Improve Lighthouse Performance
Another possible option is to use web workers for parts of your application that are more demanding. See this library for more info and demos: https://github.com/Tewr/BlazorWorker
silverback
-
C# Complex Web Scraper: Looking for feedback / code review?
MassTransit, SlimMessageBus, and SilverBack abstract interactions with message queueing systems. Some of what you are trying to do (I didn't read it deep enough to know exactly what you're using the queue for) would be done as a queue configuration instead (e.g. ordering, de-dupe, etc.).
-
Modern StyleCop alternative? Advice appreciated.
You can look here to have an idea of the tools and the pipeline (I also use azure devops): https://github.com/BEagle1984/silverback
-
How can I avoid IEnumerable multiple iterations? Is it bad to cast IEnumerable --> ICollection --> IEnumerable to perform validation?
I tend to declare the parameter as IReadOnlyCollection because I can safely iterate without extra allocations. I know you could just do a ToList by default but it would mean allocating a few arrays in the process, in worst case. You could be smarter and check if the IEnumerable can be casted to IReadOnlyCollection and perform a ToList only when needed, this would be the most flexible implementation. I sometimes create an extension method for this: https://github.com/BEagle1984/silverback/blob/master/src/Silverback.Core/Util/EnumerableAsCollectionExtensions.cs.
-
Should I be using .AsNoTracking() on my read only queries?
I strongly believe in CQRS and all my projects implement it (using a mediator etc. - I even built a framework myself for those stuff https://silverback-messaging.net).
-
How are you using Kafka?
Yes we do use Kafka in the company I work for. I built a library/framework on top of Confluent.Kafka for it. Check it out: https://silverback-messaging.net/ or https://github.com/BEagle1984/silverback.
-
NServiceBus vs CAP vs Brighter vs MediatR+Hangfire vs ...
Silverback! https://github.com/BEagle1984/silverback / https://silverback-messaging.net
-
Here my simple battle-/workstation
😁 Nope, not really. The code displayed is from my “hobby” project: https://github.com/BEagle1984/silverback.
-
Process to Process messaging system? (Any recommendations?)
By the way, if you are looking for a good/great library to interact with the brokers -> https://github.com/BEagle1984/silverback
What are some alternatives?
OpenSleigh - OpenSleigh is a Saga management library for .NET Core.
MassTransit - Distributed Application Framework for .NET
Rebus - :bus: Simple and lean service bus implementation for .NET
RawRabbit - A modern .NET framework for communication over RabbitMq
Confluent's .NET Client for Apache KafkaTM - Confluent's Apache Kafka .NET client
HostedServiceDemo
Hangfire - An easy way to perform background job processing in .NET and .NET Core applications. No Windows Service or separate process required
CAP - Distributed transaction solution in micro-service base on eventually consistency, also an eventbus with Outbox pattern
Gofer.NET - Easy C# API for Distributed Background Tasks/Jobs for .NET Core.
NServiceBus - Build, version, and monitor better microservices with the most powerful service platform for .NET
RabbitMQ.NET - RabbitMQ .NET client for .NET Standard 2.0+ and .NET 4.6.2+