Learn all about one of the world's biggest and most exciting cloud companies
Explore our global presence and deployment regions around the world
Learn what the top industry analyst firms are saying about Alibaba Cloud
Learn the basic knowledge about cloud computing
Get Free Hands-on Experience With over 40 Products
SSD Cloud server and data transfer for only $4.50 a month
19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018
With Anti-DDoS Premium, DDoS Attacks are No Longer Your Worry
1 on 1 presale consultation, 24/7 technical support, faster response, and more tickets
1 on 1 presale consultation, 24/7 technical support, faster response, and more tickets
Deploy more on the cloud at a lower cost with Alibaba Cloud
Leverage the same tools powering the Alibaba Ecosystem
Get a head start on your career in the cloud. $0.99 cloud server and free training course for eligible students
Building successful businesses for small & medium sized Independent Software Vendors (ISVs) globally
Invite friends to join Alibaba Cloud and receive free coupons
Secure, scalable, and high-performing virtual servers
Simple Application Server
Powerful parallel computing capabilities
Adjust and automate computing resources
Distribute traffic across resources
Manage your Dockerized applications
A Certified Kubernetes platform
An agile and secure serverless container instance service
A secure image hosting platform
Simplify operations and management
High-performance public computing service
High-performance elastic bare metal computing service
Powerful parallel computing accelerated on RDMA network
Large-scale batch processing
Your Dedicated Host on the Cloud
Store, backup and archive your data
Table Storage
Speed up file distribution to end-users
File storage service for ECS, HPC, and Container Service
Hybrid Cloud Storage ArrayComing Soon
Manage your Dockerized applications
A BaaS solution that protects customer data on-premises and in the cloud
Cloud Storage Gateway provides both file and block storage services
An introduction to stable networking services
Launch a private cloud network
Physical leased line and VPC interconnection
Public Internet gateway
Distribute traffic across resources
An independent public IP resource
A BaaS solution that protects customer data on-premises and in the cloud
Easy-to-use and cost-effective data transfer plans
An introduction to fully managed database services
In-memory database caching
Based on AliSQL to provide excellent stability and performance
High performing and versatile managed database
Provides rich version control, flexible upgrades, and reduces business costs
Provides high concurrency to maintain low latency
An integrated data management solution
A premium, serverless, and interactive analytics service
Provides easy-to-use tools to reduce costs of migration and usage
ApsaraDB for MongoDB
Distributed memory database
Data migration and data synchronization
A reliable backup service to ensure data security
An online warehousing service
Mitigates single machine scalability problems for large-scale relational databases
Time Series DatabaseBeta
An introduction to intelligent security services
An introduction to intelligent security services
Protect against high volume DDoS attacks
Protect against global DDoS attacks
Secure your web applications
Provides high concurrency to maintain low latency
Comprehensive security detection, response and prevention for hosts
Apply, purchase and manage SSL certificates
Asset-Correlation-Based Vulnerability and Website Threat Detection Service
Managed security service for systems on the cloud
Image and video content moderation service
Comprehensive bot defense reduces automated attacks on your website
A reliable backup service to ensure data security
Security Center provides round the clock security and protection
A customizable network security solution
Real-time cloud monitoring service
Authorize users' and partners' resource access
Create and manage encryption keys
Implement security analytics, resource change tracking, and compliance audits
Do more with your API calls and requests
Use command-line to manage Cloud resources from browser
Big Data processing service
A fast and fully-hosted TB/PB-level data warehousing solution
A highly integrated platform for real-time data processing
A full data warehousing solution with only half the investment
Real-time and Offline Data Synchronization
Intelligent analytics & visualization suite for big data
Powerful and insightful big data visualization
High-precision visual search product solution
Chatbot platform for smart dialogue interactions
Full path intelligent data creation and management platform
An end-to-end platform to meet your machine learning and data mining needs
Elasticsearch-based engine for search and analytics
Customized and high-quality machine translation
A public cloud supported email that provides fast, secure, and stable services
Send messages between applications
Open your data and service to users
An all-in-one service for log-type data
A simple and efficient email service
Secure and stable blockchain platform service on cloud
Application deployment and microservices solutions
Supports reliable message-based asynchronous communication
Easily interact between the cloud and IoT mobile devices
Centralizes management of application configurations
Easily debug and analyze your applications
Build business monitoring capabilities throughout the product lifecycle
Guarantees application high availability
Alibaba Cloud's cloud-based solutions support the demands of your business, website, or application.
Explore helpful resources from the Alibaba Cloud community
Latest cloud insights and developer trends
Step-by-step tutorials and how-to videos
Find events near you
Share and read expert technical content
Build your first app with APIs, SDKs, and tutorials
Research that dives deep into the latest trends, technology and cloud insights.
Technical and business training programs
Gain recognition for community leadership
We help accelerate Internet companies' growth globally
Introduction to fundamental technologies in cloud computing
Join Create@Alibaba Cloud
Get Free Hands-on Experience With over 40 Products
SSD Cloud server and data transfer for only $4.50 a month
19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018
With Anti-DDoS Premium, DDoS Attacks are No Longer Your Worry
1 on 1 presale consultation, 24/7 technical support, faster response, and more tickets
1 on 1 presale consultation, 24/7 technical support, faster response, and more tickets
Deploy more on the cloud at a lower cost with Alibaba Cloud
Leverage the same tools powering the Alibaba Ecosystem
Get a head start on your career in the cloud. $0.99 cloud server and free training course for eligible students
Building successful businesses for small & medium sized Independent Software Vendors (ISVs) globally
Invite friends to join Alibaba Cloud and receive free coupons
Join a global network of partners
Help to design and manage your system and applications
Join us to grow your business together with Alibaba Cloud
Join us to grow your business together with Alibaba Cloud
A message queuing and notification service that facilitates smooth transfer of messages between applications
Alibaba Cloud Message Service is a distributed message queuing and notification service that supports
concurrent operations to facilitate message transfer between applications and decoupled systems.
Alibaba Cloud Message Service enables users to move data between distributed applications to achieve
complex tasks, and build decoupled fault tolerant applications.
As a Pay-As-You-Go service,
Message Service does not require any upfront investment and saves you the hassle of owning and scaling
your own messaging platform. Best of all the service is maintenance free.
Tab #2 content goes here!
Donec pulvinar neque sed semper lacinia. Curabitur lacinia ullamcorper nibh; quis imperdiet velit eleifend ac. Donec blandit mauris eget aliquet lacinia! Donec pulvinar massa interdum risus ornare mollis. In hac habitasse platea dictumst. Ut euismod tempus hendrerit. Morbi ut adipiscing nisi. Etiam rutrum sodales gravida! Aliquam tellus orci, iaculis vel.
Tab #3 content goes here!
Donec pulvinar neque sed semper lacinia. Curabitur lacinia ullamcorper nibh; quis imperdiet velit eleifend ac. Donec blandit mauris eget aliquet lacinia! Donec pulvinar massa interdum ri.
Tab #4 content goes here!
Donec pulvinar neque sed semper lacinia. Curabitur lacinia ullamcorper nibh; quis imperdiet velit eleifend ac. Donec blandit mauris eget aliquet lacinia! Donec pulvinar massa interdum risus ornare mollis. In hac habitasse platea dictumst. Ut euismod tempus hendrerit. Morbi ut adipiscing nisi. Etiam rutrum sodales gravida! Aliquam tellus orci, iaculis vel.
Easy-to-use service with APIs such as SendMessage, ReceiveMessage, and DeleteMessage.
Leverage benefits of standard HTTP RESTful interfaces with Alibaba Cloud Message Service.
A maintenance-free service without any dependency on the platform.
Compatible with other Alibaba Cloud services.
Delay messages are supported.
You can determine the delay duration using DelaySeconds parameter, which can be specified when you use SendMessage.
Please refer to Request structure for a complete list of available regions and endpoints.
Quickly backs up data across multiple Availability Zones ensuring 99.9999999% reliability.
Leverages service availability up to 99.99%.
Ensures successful message delivery within the valid period.
Offers a wide range of message queue service modes which you can personalize including, plain queuing, latency queuing and priority queuing. Try out over 40 products for free.
1. What are the major functions of Alibaba Cloud Message Service?
Message Service can be used for the below application scenarios:
• You can integrate Alibaba Cloud Message Service with other products like Elastic
Compute Service (ECS), Object Storage Service (OSS) to build reliable, fault tolerant and flexible
applications.
• You can use Message Service as a working queue so that each message in the queue
represents one task and completes one process. This way you can decouple the process and build more
resilient applications. However, one or more ECS instances can read and execute multiple tasks from the
queue
• You can also store notifications for major events in the service processes, where each event
has one corresponding message in the queue. The application that needs to acquire an event can read and
process the corresponding message.
2. How can Message Service be accessed from different regions?
Alibaba Cloud Message Service provides various endpoints to access it in various regions mentioned below:
| Region | Public Network Address | Private Network Address |
| Hangzhou | mns.cn-hangzhou.aliyuncs.com | mns.cn-hangzhou-internal.aliyuncs.com |
|---|---|---|
| Qingdao | mns.cn-qingdao.aliyuncs.com | mns.cn-qingdao-internal.aliyuncs.com |
| Beijing | mns.cn-beijing.aliyuncs.com | mns.cn-beijing-internal.aliyuncs.com |
| Singapore | mns.ap-southeast-1.aliyuncs.com | mns.ap-southeast-1-internal.aliyuncs.com |
| US - West | mns.us-west-1.aliyuncs.com | mns.us-west-1-internal.aliyuncs.com/ |
| Shenzhen | mns.cn-shenzhen.aliyuncs.com | mns.cn-shenzhen-internal.aliyuncs.com |
| Shanghai | mns.cn-shanghai.aliyuncs.com | mns.cn-shanghai-internal.aliyuncs.com |
3. What kind of operations are supported by Alibaba Cloud Message Service?
Now, Alibaba Cloud Message Service supports the following operations:
• CreateQueue: Creates a new queue.
• SetQueueAttributes: Modifies attributes of a
queue.
• GetQueueAttributes: Obtains attributes of an existing queue.
• DeleteQueue: Deletes an
existing queue.
• ListQueue: Lists queues under one account.
• SendMessage: Enables producer to send messages to the specified queue.
•
BatchSendMessage: Enables producer to send messages to the specified queue in batches.
•
ReceiveMessage: Enables consumer to consume messages in a queue.
• BatchReceiveMessage: Enables
consumer to consume messages in the queue in batches.
• DeleteMessage: Deletes consumed message.
•
BatchDeleteMessage: Deletes consumed messages in batches.
• PeekMessage: Enables consumer to view
messages.
• BatchPeekMessage: Enables consumer to view messages in batches.
•
ChangeMessageVisibility: Changes the time when a message that has been consumed is still in an inactive
state and can be consumed again.
4. What are the advantages of Alibaba Cloud Message Service compared to other message queue systems?
Alibaba Cloud Message Service has the following advantages compared to building a message queue system or using a commercial or open source message and notification service to manage queues:
• You do not need to make large investments.
• You don’t need to engage as much
hardware and management resources, which adds to your enterprise ownership cost.
• Your messages are
safe in case of hardware failure using replication and redundant message storage option.
• You can
easily make changes through Alibaba Cloud Management Console once you create a message, even in live
deployments.
5. How can I get started with Alibaba Cloud Message Service?
• Create an Alibaba Cloud account.
• Subscribe to Alibaba Cloud
Message Service online.
• You can now start performing basic messaging operations such as creating and
deleting queues, receiving and sending messages using the Management Console.
• You can also refer to
this Quick Start guide for step-by-step directions on how to use Alibaba Cloud Message
Service Message Service through the Management Console.
• You can also utilize Message service APIs and SDKs to integrate message queue with your applications.
6. How is a message identified in the system?
A unique Message-ID is used to identify a message in a queue. When a message is sent to a Message Service queue, a Message-ID is generated which cannot be changed once generated.
7. What is long polling?
Long polling is a way of retrieving messages from queues. Long polling allows Message Service to wait until a message is available in the queue before sending a response. This helps to reduce the number of empty responses.
8. Does Message Queuing Service support long polling?
Yes, Message Service supports long polling.
Once the message is available, long
polling can immediately retrieve the message in the Message Service queue in a simple and economical
manner.
9. Does Message Service support message First-In-First-Out (FIFO)?
Yes, Message Service ensures that in most cases messages are consumed in a FIFO manner. However, some features of distributed message queues may not always allow messages to be consumed in the order they are sent.
10. Can Message Service work with other Alibaba Cloud services?
Message Service can work with other Alibaba Cloud services such as Elastic Compute Service (ECS), Object Storage Service (OSS), and Object Table Service to enable greater reliability and scalability for applications.
11. Here are common use cases of Message Service with other Alibaba Cloud products:
• Message Service can carry messages to applications running on ECS instances so
messages are processed.
• The ECS instance can read the queue, process tasks, and then publish the
result to another Message Service queue as a message (which may be further processed by other
applications).
• ECS allows dynamic scalability of applications so developers can build in the
elasticity for computing instances according to the volume of messages to maintain consistent performance.
12. How does Message Service ensure reliability of stored data?
Message Service stores all queues and messages in a network of highly reliable and available Alibaba Cloud data centers. All messages are stored on multiple servers in redundancy mode. In the case of server failure, messages can be fetched from the redundant pool of data.
13. How does Message Service ensure that no messages are lost or repeatedly consumed when multiple consumers access the same queue?
Each Message Service queue has the configurable ChangeMessageVisibility attribute (that is, invisibility duration of the message taken out from the queue). When one message is taken out from the queue, other consumers cannot obtain this message during its invisibility period.
• If you finish the consumption within the invisibility period, the temporary handle
(ReceiptHandle) is used to delete the message.
• If you are not able to finish the consumption within
the invisibility period, you can send a request to extend the invisibility period using
(ChangeVisibilityTimeout). Otherwise, the message can be obtained by other consumers once the invisibility
period expires.
14. How many times can each message be received using Message Service?
The system design of Message Service ensures that all the messages in your queue are consumed at least once. However, we recommend that you enhance fault tolerance of the application services, so no error or inconsistency occurs when the same message is processed many times.
15. How does Alibaba Cloud Message Service ensure security of the messages queues?
Alibaba Cloud Message Service offers secure and reliable identity authentication mechanisms to protect message queues from unauthorized access. Only Alibaba Cloud account owners can access the queues created by themselves.
16. How can I configure Message Service to support a longer message retention period?
To set the message retention period, use SetQueueAttributes to set the MessageRetentionPeriod attribute. This attribute specifies the retention time of a message in the Message Service queue. Now, the message retention period is 4 days by default. You can set MessageRetentionPeriod to a value between 1 minute and 15 days.
17. How long can a message be retained in the Message Service?
The default message retention period in Alibaba Cloud Message Service is 4 days. However, the retention period is configurable and can be set to any value between 1 minute and 15 days. Once the message retention period expires, your message will be deleted automatically.
18. How to configure Message Service to support larger messages?
To configure the maximum message size, use SetQueueAttributes to set the MaximumMessageSize attribute. This attribute specifies the bytes size of a message. It can be set to any value between 1KB and 64KB. If the message length exceeds 64KB, We recommend that you store the data in OSS and store only the access address of the data in Message Service.
19. What happens to a queue that contains no message for a long time?
Normally, Alibaba Cloud Message Service does not delete inactive queues. However, if your Message Service is suspended due to defaulting or other reasons, all your queues will be deleted.
20. Are queues with the same name in different regions the same?
No. Queues with the same name in different regions are independent from each other.
1 on 1 Presale Consultation, 24/7 Technical Support, Faster Response, and More Tickets.
Consulting by experienced cloud experts. Learn
More
Extended service time from 10 hours 5 days a week to 24/7. Learn More
The number of free tickets doubled from 3 to 6 per quarter. Learn More
Shorten after-sale response time from 36 hours to 18 hours. Learn More