[OCI] Working with Notification Service in OCI


In this post we will discuss about Notification in Oracle Cloud Infrastructure (OCI).
 

Notification Service

In Oracle Cloud Infrastructure (OCI), the Notification service, is a messaging service that allows you to easily create topics and subscribers.

  • Topics - Topics are logical channels or destinations to which you can publish messages. Topics can be used to categorize messages and manage subscriptions efficiently.
  • Subscribers - Subscribers are entities that receive messages published to topics. Subscribers can be of various types, including functions, email addresses, HTTPS endpoints, and Oracle Cloud Infrastructure services. 


So, let's work with notification service in OCI. Follow the below steps to setup Notification Service

 

  •  Login to OCI Console. Navigate to Navigation Menu -> Developer Services -> Notifications
 
  • Choose the compartment in which you want to create the topic and click on Create Topic button

  • Enter the Name and Description of the Topic and click Create button

  • Once the Topic is created, click on Create Subscription button to add the subscribers

  • Select the Protocol as Email from the list as we will be sending out notifications to the users

  • Provide the email of user and then click Create button

  • Soon, you will be able to see subscription added with State as Pending.

  • As we have added Subscription type as Email, so the user has to accept the subscription. User will receive an email in which it has to be accepted by clicking on Confirm Subscription:



  • Once user has confirmed, you will then see the State as Active after refreshing the webpage.

  • You can then test the subscription by clicking on Publish button and providing Message & Title. Then click on Publish.

  • User will then receive an email
  • User can also unsubscribe by clicking on the link
  • So by this way you can create the Topics and Subscriptions in OCI
  • In next post (click here to see) we will discuss Events Service

Comments