Installing and Running Doradus : Embedding Doradus In Another Application

Embedding Doradus In Another Application
Some applications can benefit from embedding Doradus in the same JVM process. Such applications call internal Doradus service methods directly instead of using the REST API. This offers higher performance since the overhead of the REST API is avoid, hence it is ideal when performance is critical such as for bulk load applications.
To embed Doradus in the same JVM, include the Doradus server jar files in the classpath. There are two ways to start Doradus depending on if the calling wants to block: