SignalR on ASP.NET Core Made Easy (The Course)
Course Info
This course includes 1 attempt.
Are you a web developer or do you write IoT software? If so, you would know that many web and IoT development projects these days require the ability to establish a persistent connection between a client and a server without having to keep sending repeated requests from the client. As you may also know, such functionality may be hard to implement.
However, if you can build your server-side application on ASP.NET Core, there is a way to make this whole process easy. There is a library called SignalR. This is what I'm going to talk about in this course. As well as doing all the heavy lifting for you, the library abstracts away all complex implementation details, so your code can be made extremely simple.
However, as you would already know, nothing in programming is simple in absolute terms. Programming is a complex activity, so even those concepts that are relatively simple require some practice and studying.
This is why I've created this course. By the end of it, you should be able to build a web application that clients will be able to establish a persistent connection with and exchange the data with in real time.
This course provides code samples based on .NET 6 project templates. However, it also explains how to implement the equivalent functionality for those developers who are still using old-style .NET 5 project templates. So, by end of this course, you will have learned both how to use SignalR in new applications and how to retrofit it in your legacy code.
Course Material
- Section 1: Introduction
- Introduction to the course
- SignalR transport mechanisms
- Setting up your environment
- Setting up your solution
- Solution overview
- Section 2: SignalR Hub
- SignalR Hub overview
- Example of SignalR Hub
- SignalR Hub explained
- An example of a strongly-typed SignalR Hub
- Strongly-typed SignalR Hub explained
- Further reading
- Section 3: SignalR clients
- Introducing SignalR clients
- Setting up a JavaScript client
- Example of JavaScrip client
- JavaScrip client explained
- Setting up a .NET client
- .NET client example
- .NET client explained
- Setting up a Blazor WebAssembly client
- Blazor WebAssembly client example
- Setting up a raw WebSocket client
- Raw WebSocket client example
- WebSocket client explained
- Further Reading
- Section 4: Securing SignalR applications
- Introducing SignalR security
- Example of CORS configuration
- Setting up SignalR authentication
- Example of Identity authentication
- Identity authentication explained
- User authentication example
- User authentication explained
- Enabling messaging individual users
- Messaging individual users
- Further reading
- Section 5: Scaling SignalR server
- Why would you need to scale SignalR server
- Introducing Redis cache
- Setting up Redis
- Connecting SignalR Hub to Redis
- Multiple Hub instances
- Examle of Hub Context
- Hub Context explained
- Setting up Azure SignalR Service
- Azure SignalR Service dependencies
- Connecting application to the SignalR Service
- Azure SignalR HTTP client explained
- Further reading
- Section 6: SignalR streaming
- Introducing SignalR streaming
- Client streaming example
- Client streaming explained
- Server streaming example
- Server streaming explained
- Further reading
- Section 7: Conclusion
- Wrapping up
- Keeping in touch
Instructors
I am a senior software engineer working for Microsoft. I have over a decade of professional experience and am a past recipient of the Microsoft MVP award. I primarily specialize in .NET and Microsoft stack. I am enthusiastic about creating well-crafted software that fully meets business needs.
Throughout my career, I have successfully developed software of various types and various levels of complexity in multiple industries. This includes a passenger information management system for a railway, distributed smart clusters of IoT devices, e-commerce systems, financial transaction processing systems, and more. I have also successfully led and mentored teams of software developers.
I enjoy sharing my knowledge with the community. This motivates me to mentor aspiring developers and create educational content, which includes blog posts, technical books, and online courses. I regularly write about software development on my personal website, scientificprogrammer.net.
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them