With Just a Small Library, Your Java Application Becomes a Node
By integrating a small library, your application or microservice becomes a node. You can then publish and use any services and send messages to other nodes.
Any Java program can mutate into a
Java Version
Dependencies
The following third-party libraries are used:
Library | Vendor | Size in KBytes |
---|---|---|
annotations | JetBrains | 19 |
json-simple | 24 |
Together, that's just over 40 KBytes (!) of third-party libraries.
Size
The kernel is only 1.3 MByte in size and therefore very fast to load. It includes the messaging core, timers, threads, the namespaces and the logging. All other functionalities, especially networking, are loaded via plugins at start time. The sum of the sizes of the mostly used plugins is together again about 600 KBytes. Including third-party libraries and plugins, about 1.9 MBytes are added to your program.
Performance
Since less than 2 MByte have to be loaded in total, the startup process is very fast.
A typical node starts in 200ms (from first to last log message).
A
These times do not necessarily add up to the startup time of your program, since all code starts concurrently.