How to scale out a SignalR back-end by using Redis
You can run a single monolithic instance of a server application only if the number of clients accessing your application doesn’t exceed a couple of thousand. But what if you expect hundreds of thousands, or even millions, of clients to connect to your application simultaneously? Then a single instance of Continue Reading
Securing your SignalR applications with OpenID Connect and OAuth
Securing your applications is very important, especially if they are accessible via a network that you don’t have control over, such as public internet. Without security, absolutely anyone can connect to your application, including someone who is up to no good. And this may result in a catastrophic failure that Continue Reading
Advanced SignalR configuration: fine-tuning the server-side hub and all supported client types
We have already covered all the fundamental ways of using SignalR messages. We have learned how to set up clients of all supported types, how to send messages to specific clients and how to use data streams, both client-to-server and server-to-client. Now, we will be moving on to more advanced Continue Reading
Streaming in SignalR
Until this point, we have only covered the use of singular messages in SignalR. But SignalR also supports message streaming. Streaming is when, instead of sending all data at ones, you send it in chunks. Perhaps, it’s a large object that gets split into smaller parts. Or it could be Continue Reading
Sending messages to individual SignalR clients or groups of clients
SignalR hub can broadcast a message to all connected clients. But this is far from being the only way you can use SignalR. The hub allows you to send messages to individual clients. You can also group clients together and send messages to specific groups of clients. And this is Continue Reading
In-browser SignalR clients
SignalR Hub is only useful if you have clients connected to it. And in this article, you will learn how to connect in-browser clients. We will start with in-browser clients because they are slightly easier to set up than external clients. For example, you won’t have to create external applications Continue Reading
The Battle Hardened Developer
Unaware of the battle… …the secret enemy destroys careers. Do you know the biggest threat to your job? Fiodar is a lead software engineer, technical author, and mentor to coders. He knows the struggle and has compiled take the lessons learned from mixed martial arts and endurance sports in this Continue Reading
Single Sign-on user authentication on Blazor WebAssembly SignalR client
SignalR is an inbuilt ASP.NET Core library that makes it easy to create interactive real-time applications. It enables fast two-way messaging between the client and the server. Under the hood, it uses some complex logic to enable all of this. But its external APIs hide all this complexity, so using Continue Reading
Applying SOLID principles to JavaScript – a step-by-step refactoring guide
Many design patterns were developed with SOLID principles in mind. Therefore it will be hard to learn design patterns unless you know SOLID principles. But SOLID principles aren’t merely a tool to help you learn design patterns. Every software developer who uses object-oriented programming languages needs to be familiar with Continue Reading
SignalR vs gRPC on ASP.NET Core – which one to choose
My book, SignalR on .NET 6 – the complete guide, is out now! Also available in print. A while ago, when ASP.NET Core didn’t even exist, Microsoft has created a library for .NET Framework-based ASP.NET that enabled a two-way communication between the clients and a server in real time. This Continue Reading
The easiest way to learn design patterns
Design patters are something that you will need to get familiar with as a programmer who works with object oriented languages. And this is primarily because they represent well-defined solutions to common software development problems. So, instead of thinking through all the details of your solution, you can simply check Continue Reading
Build a Distributed IoT Cluster on .NET 6 Using Blazor and SignalR to Manage IoT Devices
This video will teach you how to build a cluster of IoT devices using only .NET components. After viewing it you will be able to build a complete distributed IoT solution using .NET 6, SignalR and Blazor. This videos explains how SignalR can substantially simplify two-way real-time communication between the Continue Reading
The easiest way to learn design patterns: with JavaScript code examples on Node.js
By Fiodar Sazanavets Design patters are something that you will need to get familiar with as a programmer who works with object oriented languages. And this is primarily because they represent well-defined solutions to common software development problems. So, instead of thinking through all the details of your solution, you Continue Reading
Performance Best Practices for Using gRPC on .NET
This article is a chapter from the book Microservices Communication in .NET Using gRPC Since gRPC is often used for processing large volumes of data inside a distributed application, this communication mechanism must be optimized for the best performance. In this chapter, we will cover some best practices when it Continue Reading
Microservices Communication in .NET Using gRPC
Learn how to implement gRPC on the .NET platform step by step and cover how to use gRPC on .NET, including fundamentals, use cases, and best practices Key Features Book Description Explore gRPC’s capabilities for faster communication between your microservices using the HTTP/2 protocol in this practical guide that shows Continue Reading
SignalR on .NET 6: the Complete Guide
By Fiodar Sazanavets Are you a software engineer who needs to build a fully interactive application with real-time updates? Perhaps you are aiming to write an instant messaging app. Or perhaps you want to receive updates about someone’s location in real time. Or maybe you have a fleet of responsive Continue Reading
Summary of the problems design patterns are intended to solve
This article is a chapter from the book The easiest way to learn design patterns This chapter summarizes which design patterns can be used to solve any specific type of a software development problem. It’s intended to be a reference guide to help you find the right design pattern quickly. Continue Reading
External SignalR clients
This article is a chapter from the book SignalR on .NET 6 – the Complete Guide In the previous chapter, we have covered the basic of using in-browser clients to connect to a SignalR hub. Even though these clients are suitable to cover a wide range of SignalR use cases, Continue Reading