spring-cloud / spring-cloud/spring-cloud-netflix

support dual stack address registry and discovery in Spring Cloud Netflix Eureka

Open
#4,295 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

for team discussion
Dominant language
Java
Stars
5k
Forks
2.5k
Avg merge
1d 2h
Merged PRs (30d)
10

Description

Hi Spring Cloud Team,
We are using Spring Cloud Netflix as our Discovery Service, and also setup an Eureka cluster as registration center.

We need to provide a method to help enterprises realize the smooth migration of the large-scale Spring Cloud microservice system IP address stack from IPv4 to IPv6. The specific method is to achieve migration through dual registration and double subscription. The specific migration steps of this solution are as follows:

  1. First, upgrade the Spring Cloud framework for all microservice applications in the system to enable them to have dual-stack address extraction and resolution functions.
  2. Transform the IP address protocol stack of the host machine where some microservices in the system are located, so that it supports dual-stack IPv4 and IPv6 addresses at the same time.
  3. The dual-stack address extraction module in the microservice application modified in step 2 extracts the dual-stack addresses in the application host, and registers the dual-stack addresses to the registration center through the service registration module.
  4. Consumers subscribe to the dual-stack IPv4 and IPv6 addresses of a service in the registration center, and compare the address stack types supported by the host through the dual-stack address resolution module in the application. If the host only supports IPv4, use The provider’s IPv4 address initiates a service call; if only IPv6 is supported or dual-stack is supported at the same time, the provider’s IPv6 address is used to initiate a service call. If the call fails, it is best to use the IPv4 address to retry.
  5. When all Spring Cloud microservices in the system have completed supporting the IPv6 address stack, gradually close the IPv4 address stack for all application hosts, thereby smoothly completing the migration of the large-scale microservice system from the IPv4 address stack to the IPv6 address stack.

This solution has been finished in Spring Cloud Alibaba, and it only supports Nacos registration center, don't supports Eureka. Do you have any plans to support Eureka in Spring Cloud Netflix?

Thanks very much.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by reviewing the Eureka registration and discovery integration described in the issue, then determine the project boundaries for dual-stack address registration, subscription, selection, and fallback; done means Eureka supports the requested IPv4/IPv6 migration flow.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
backend, distributed-systems, networking
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.