Skip to content

feat: add Unix socket support for inter-container communication#2587

Merged
AlinsRan merged 3 commits intoapache:masterfrom
AlinsRan:chore-unix-socket
Sep 30, 2025
Merged

feat: add Unix socket support for inter-container communication#2587
AlinsRan merged 3 commits intoapache:masterfrom
AlinsRan:chore-unix-socket

Conversation

@AlinsRan
Copy link
Copy Markdown
Contributor

@AlinsRan AlinsRan commented Sep 30, 2025

Type of change:

  • Bugfix
  • New feature provided
  • Improve performance
  • Backport patches
  • Documentation
  • Refactor
  • Chore
  • CI/CD or Tests

What this PR does / why we need it:

Currently, inter-container communication within the same Pod relies on HTTP over TCP (loopback or pod IP).
This approach introduces unnecessary networking overhead and requires opening or allocating TCP ports, even though the traffic never leaves the Pod.

By using Unix domain sockets (UDS), we can:

  • Reduce overhead for local inter-container communication

  • Eliminate the need to expose or bind TCP ports within the Pod

  • Improve security by leveraging file system permissions to control access

Pre-submission checklist:

  • Did you explain what problem does this PR solve? Or what new features have been added?
  • Have you added corresponding test cases?
  • Have you modified the corresponding document?
  • Is this PR backward compatible? If it is not backward compatible, please discuss on the mailing list first

@AlinsRan AlinsRan marked this pull request as ready for review September 30, 2025 00:15
@AlinsRan AlinsRan requested a review from ronething September 30, 2025 03:24
Comment thread internal/adc/client/executor.go Outdated
@AlinsRan AlinsRan merged commit dc8b662 into apache:master Sep 30, 2025
28 of 29 checks passed
@AlinsRan AlinsRan deleted the chore-unix-socket branch September 30, 2025 07:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants