This example starts up an HTTP server and an HTTP client that connects to said server. The client sends a JSON message to which the server responds and then quits.
This demonstrates the following concepts:
- Defining and using serializers
- How to set up an HTTP server
- How to set up an HTTP client using the
ClientFactory
- Using the advanced parameter
Spinlock
in thePriorityQueue
.
-a, --address, "Address to bind to, e.g. 127.0.0.1"
-v, --verbosity, "Increase logging for each -v"
-t, --threads, "Number of threads to use for I/O, default: 1"
-p, --spinlock, "Spinlock 10ms before going to sleep, improves latency in high workload cases at the expense of CPU usage"
-s, --silent, "No output"