Push notification architecture
Creating a whole system that relies on push notifications is not a trivial task. Besides ensuring that you are not focusing on handling each PNS logic individually and providing reliable device registration and routing systems, you must introduce a pipeline for passing messages from one part of your system to the end device. In this section, we will focus on incorporating Notification Hubs into a few reference architectures, which will help you understand its role and the connections between different cloud services.
Direct connection
The simplest architecture we could think of would be a direct connection between a backend and notification service, as illustrated in the following diagram:
Figure 6.3 – Architecture for handling multiplatform push notifications
In such a scenario, each sent notification request is handled by notification services, which communicate with different PNSes. Each PNS individually handles...