https://github.com/openhft/chronicle-queue-demo
Sample programs for Chronicle Queue
https://github.com/openhft/chronicle-queue-demo
Last synced: 9 months ago
JSON representation
Sample programs for Chronicle Queue
- Host: GitHub
- URL: https://github.com/openhft/chronicle-queue-demo
- Owner: OpenHFT
- License: apache-2.0
- Created: 2016-07-18T12:54:03.000Z (over 9 years ago)
- Default Branch: main
- Last Pushed: 2025-01-02T14:19:39.000Z (about 1 year ago)
- Last Synced: 2025-03-29T08:07:06.153Z (10 months ago)
- Language: Java
- Size: 1.24 MB
- Stars: 75
- Watchers: 21
- Forks: 51
- Open Issues: 7
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE
Awesome Lists containing this project
README
= Chronicle-Queue-Demo
Peter Lawrey
:imagesdir: images
This is a tutorial demonstrating the usage of Chronicle Queue with simple demo programs.
== Order Processor
image::Two-hop-latency.PNG[]
You can find the source code for the order processor example https://github.com/OpenHFT/Chronicle-Queue-Demo/tree/master/order-processor[here].
== Downloading and Running Sample Programs
If you're running Windows, you will need to install the `git` client and `open-ssh` Cygwin, https://cygwin.com/install.html[here], with a guide showing installation and packages http://www.mcclean-cooper.com/valentino/cygwin_install/[here].
This allows you to install Linux packages that aren't already on Windows.
When this asks you which packages you want to install, search for and add `git`.
This is under `Development` and you need to click `skip` so it says to `install`.
image::gitpack.png[]
Open IntelliJ or your favorite https://en.wikipedia.org/wiki/Integrated_development_environment[Integrated Development Environment (IDE)]. If you haven't installed an IDE, we recommend https://www.jetbrains.com/idea/download/#section=windows[IntelliJ], which we'll use for this tutorial.
In IntelliJ, select `Get from VCS` to clone the Chronicle Queue Sample code.
image::homegit.png[]
Then, copy the following URL into the `Git Repository URL` field and remember the `Parent Directory`. Click `Clone` to get the code.
[source]
----
https://github.com/OpenHFT/Chronicle-Queue-Demo.git
----
image::Clone.PNG[]
If you close the project, you can reopen it by going to `File -> Open`. You'll find the repository in the directory where you saved it.
image::directory.PNG[]
Now you're ready to run the example programs! You can start with https://github.com/OpenHFT/Chronicle-Queue-Demo/tree/master/simple-input[Simple Input].
The second example is https://github.com/OpenHFT/Chronicle-Queue-Demo/tree/master/simple-translator[Simple Translator].