Skip to content
This repository has been archived by the owner on Sep 17, 2023. It is now read-only.

mikey-t/thread-throttle-poc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

thread-throttle-poc

This is a proof of concept for throttling batch message processing of an external message queue.

TODO:

  • Add stats counters/output
  • Add exception handling
    • Investigate need for loop restarts on fatal exceptions outside of message handling
  • Add visibility timeout refresh functionality
    • Investigate batch vs individual message feasibility/complexity

How to Run

In root directory:

mvn compile

mvn exec:java

Options

Alter runtime options in QueueOptions.java (recompile before re-running). JVM options can be modified in .mvn/jvm.config.

Misc

Check number of theads currently in use by searching for process "ThreadThrottlePOC", getting process ID and plugging it the ps command:

ps -o thcount <process-id>

Screenshot

Thread throttle POC demo [2020-04-18-ThreadThrottlePOC-demo-01.png]

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages