Ali cloud -ONS-Help- announcement about access point settings: Configure TCP network access point

ylbtech- Ali cloud -ONS-Help- announcement about access point settings: Configure TCP network access point

 

1. Back to top
1、

To further enhance the stability of the message queue RocketMQ version of the service, and thus safeguard the stability of your application, for application deployment in a certain area (Region), if you are using the SDK under the TCP protocol, we need to use the geographical TCP network access point message queue RocketMQ version of the service. And configuration steps described in detail herein, provide the corresponding TCP local network access point.

Description Announcement

Localization of TCP network access points higher than the stability of the original access mode , you must complete the switch on the 30th June 2020. After the deadline, the original access point stability will be lower .

Effect switch TCP network access points as follows:
  • If the application does not have cross-boundary use of message queues RocketMQ version, send and subscriber changes may not be synchronized .
  • If the application has geographies use message queue RocketMQ version, the time required for switching according Operations Evaluation . You can use the HTTP protocol client access points to meet your cross-regional use of message queues RocketMQ version of the demand. Please refer to  the HTTP protocol client access instructions .

Announcement Please refer to the access point Localization notice .

 
Description TCP network access point to switch applies SDK and Ali cloud launch of the SDK to the open source community provides. Open source TCP SDK Access Guide See  TCP protocol SDK (Community Edition) .

Determine the need to switch

Please determine your current use of the queue RocketMQ version instances of the message TCP network access point is contained within the area ID, the format is  http://xxxx.<region_id>.mq-internal.aliyuncs.com:<port>:
  • If you are using an access point include geographic ID , such as  HTTP: // xxxx. CN-o hangzhou .mq-internal.aliyuncs.com: 8080, you do not need to do any access point configuration changes.
  • If you are using the access point does not contain geographic ID , for example,  HTTP: // XXXX. MQ-Internal .aliyuncs.com: 8080, press provided herein procedure , to reconfigure your SDK using access point information .

Background Information

To use a message queue RocketMQ version to send and receive messages, you need to use the SDK at the TCP protocol, the corresponding parameter configuration resource information for you actually use. Note especially that the following parameters corresponding resources should be in the same region:

  • GROUP_ID: You Group ID created on the message queue RocketMQ version of the console.
  • Topic: You Topic created on the message queue RocketMQ version of the console.
  • NAMESRV_ADDR : You from the message queue RocketMQ version of the console page for details of instances access point.
For example, you buy in the East 1 (Hangzhou) area of a message queue RocketMQ A version instance, and created Topic A and Group ID A in this area, for the deployment of end use applications A client of the region; at the same time, you also another area, such as 1 CHINA (Shenzhen) later another message queue RocketMQ Edition example B, and creates a Topic B and Group ID B in this area, for deployment in the local client application B. In need of special attention to the following information:
  • For Topic A, you can only 1 in East (Hangzhou) local, belonging to Group ID A client terminal A sends messages to or receives Topic A.
  • For Topic B, you can only 1 in South China (Shenzhen) area, the customer attributable to the Group ID B terminal B to send or receive messages to Topic B.
DETAILED correspondence relationship as shown in FIG. Access point settings

Steps

  1. Log message queue RocketMQ version of the console . In the top menu bar, select regions, such as East 1 (Hangzhou).
  2. In the left navigation bar, click instance details.
  3. In the instance details page, click the instance information tab.
  4. In the instance information tab, locate acquiring access point information area, you can view the  TCP protocol client access point within the network access point.endpoint
  5. The access point configuration parameters to the respective transmitting side and the subscribing side your code.
    • Ons-sdk corresponding parameters provided by Ali cloud to Java SDK is an example  NAMESRV_ADDR. 
      // set TCP access domain, enter the console instance details page, select instance top of the page, "Getting access point information" in the instance information in the area to see 
      properties.put (PropertyKeyConst.NAMESRV_ADDR, "XXX") ;
    • Rocketmq-sdk parameters corresponding to the open source community to Java SDK is an example  setNamesrvAddr. 
      * Set your access point to information obtained from Ali cloud console, similar to the "HTTP: // MQ_INST_XXXX.aliyuncs.com:80" 
      * / 
      producer.setNamesrvAddr ( "YOUR ACCESS the POINT");

       

2、
2. Return to top
 
3. Back to top
 
4. Top
 
5. Top
1、
2、
 
6. Back to top
 
warn Author: ylbtech
Source: http://ylbtech.cnblogs.com/
This article belongs to the author and blog Park total, welcome to reprint, but without the author's consent declared by this section must be retained, and given the original connection in the apparent position of the article page, otherwise reserves the right to pursue legal responsibilities.

Guess you like

Origin www.cnblogs.com/storebook/p/12594381.html