Skip to content

I wanted to test if a single consumer subscribed to many topics would chew up lots of ports. Spoilers, it doesn't.

License

Notifications You must be signed in to change notification settings

joshpollard/KafkaTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

KafkaTest

I wanted to test if a single consumer subscribed to many topics would chew up lots of ports. Spoilers, it doesn't.

Most of the code is just the Kafka library sample code.

While both apps are running I ran the following PowerShell script to count the number of ports being used by KTConsume.

Get-NetTCPConnection | Group-Object -Property State, OwningProcess | Select -Property Count, Name, @{Name="ProcessName";Expression={(Get-Process -PID ($_.Name.Split(',')[-1].Trim(' '))).Name}}, Group | Sort Count

My testing in Windows showed that running a test with 1, 10, or 100 topics, it always used 8 ports.

About

I wanted to test if a single consumer subscribed to many topics would chew up lots of ports. Spoilers, it doesn't.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages