Building a responsive UI with ASP.NET
In this section, we will be looking at ways to assist ASP.NET applications in being quick and responsive. We will start by looking at memory and distributed caching. Then, we will look at how you can update a section of a page using AJAX. Next, we will move on to write a real-time chat application with SignalR. We will then take a look at using WebSockets in our ASP.NET applications.
Note
We will not be covering gRPC-Web in this chapter, as we have already covered that topic with example code in Chapter 9, Enhancing the Performance of Networked Applications, in which we looked at gRPC for non-web applications and gRPC-Web for web applications. In this chapter, we also implemented a simple Blazor web application using gRPC-Web, so you can refer to this chapter for gRPC/gRPC-Web.
Let’s begin looking at a responsive ASP.NET application by focusing on caching. There are two kinds of caching we will be looking at. These are memory caching...