Distributed Message Service RocketMQ

Environment Preparation

2024-07-03 03:17:04

Overview

Before you create a DMS RocketMQ instance, you need to make some preparations.

First, you need to set up a virtual private cloud (VPC), which is an isolated network environment to host the RocketMQ instance.

Next, you need to create a subnet, which is a subnet inside the VPC to separate different parts and regions.

Finally, you need to configure a security group to control inbound and outbound traffic rules to ensure the security of the RocketMQ instance.

Each DMS RocketMQ instance is deployed in a specific VPC and associated with a specific subnet and security group. This allows you to configure and manage the network environment of your RocketMQ instance on your own, and provides security protection policies. If you already have existing VPCs, subnets, and security groups, you can reuse them without having to additional creation. This saves time and resources, and also ensures consistency and reliability.

VPCs and Subnets

VPCs and subnets can be reused, or you can use different VPCs and subnets to configure your RocketMQ instance based on your actual needs. When creating a VPC and a subnet, keep in mind the following requirements:

l  The VPC and the associated DMS RocketMQ should be in the same region.

l  If you have no special requirements, you can use the default configuration to create VPCs and subnets.

For operations about how to create a VPC and a subnet, refer to Virtual Private Cloud (VPC) - Creating a VPC and a Subnet, and Building a Private Network.

If you want to create and use a new subnet in an existing VPC, refer to Virtual Private Cloud (VPC) - Subnet Management - Creating a Subnet.

Note:

l   To create an IPv4 instance, you only need to configure the IPv4 subnet for the VPC subnet.

l   To create an IPv6 instance, you only need to configure the ipv4/ipv6 dual-stack subnet for the VPC subnet.

 Security Group

Security groups can be reused, or you can use different security groups and configurations based on your actual needs.

For more operations about how to create a security group, refer to Virtual Private Cloud (VPC) - Creating a Security Group.

If you want to add rules to a security group, refer to Virtual Private Cloud (VPC) - Security Group - Adding a Security Group Rule.

ECS

To connect your client application to RocketMQ to send and consume messages, purchase an ECS and ensure that the ECS is located in the same VPC as the RocketMQ instance. For creation instructions, see Create ECS.

Other Tools

Download and install Eclipse 3.6.0 or later, or  IntelliJ or JDK 1.8.111 or later.

The SDK for production and consumption verification is shown as follows:

The recommended Java SDK community version is 4.9.3. Please download it at the Apache RocketMQ Official Website.


awnB_PoPVCdS