Choose how to run JOpt

JOpt runs in one of three ways. The Java SDK runs the JOpt core inside your own Java application. JOpt.TourOptimizer runs the same core as a REST server in a container, in one of two modes: in trusted mode your backend handles sign-in, tenants and licenses, and in auth mode the JOpt Platform stack does.

If the optimization runs inside your own Java application, use the Java SDK: the JOpt core as a Maven dependency. Otherwise run JOpt.TourOptimizer. If your own backend handles sign-in, tenants and licenses, run it in trusted mode. If the JOpt Platform stack should handle them, run it in auth mode in that stack.

The diagram opens full size on click.

The diagram asks two questions. If the optimization runs inside your own Java application, use the Java SDK. If not, JOpt.TourOptimizer runs as a REST server, and the second question decides the mode: when your backend handles sign-in, tenants and licenses, run TourOptimizer in trusted mode; when the stack handles them, run it in auth mode in the JOpt Platform.

The three ways side by side

Java SDKTourOptimizer, trusted modeTourOptimizer, auth mode
Where the optimization runsIn the JVM of your applicationIn the TourOptimizer containerIn the TourOptimizer copies of the JOpt Platform stack
How a client calls itJava method calls, no networkREST from any languageREST from any language, with a token
Sign-in, tenants and licensesYour applicationYour backend; it sends the tenant in X-Tenant-Id and the license with the job or as the server defaultThe stack: sign-in with Keycloak, the tenant from the token, the license per tenant from the secret store
What you runYour application with the JOpt core as a Maven dependencyOne TourOptimizer container, MongoDB for jobs, more copies as neededThe JOpt Platform stack: TourOptimizer, GeoCoderRouter, Keycloak, MongoDB, Redis, Infisical and the proxy
Road distances and driving timesSet by your application; without them JOpt calculates them from the coordinates (backup connector)Sent by your backend with the job; without them JOpt calculates them from the coordinatesFrom GeoCoderRouter in the stack, which also geocodes addresses
Where to startGetting started: Java SDKTrusted ModeJOpt Platform

The two modes of TourOptimizer use one image, one REST API and one JSON model. The Spring profile auth chooses auth mode; without it TourOptimizer runs in trusted mode. Everything that differs between the modes, such as rates, quotas, synchronous runs and the encryption of stored results, is listed on the JOpt.TourOptimizer overview.

The Java SDK

The Java SDK is the JOpt core as a library. Your application builds the optimization in memory, runs it and reads the result directly, without a network call. The core is published in the public DNA Evolutions Maven repository repo.dna-evolutions.com. The Java examples show how a model is built; Getting started runs the first one, and JOpt.Core overview lists the lines of the core and their Java versions.

TourOptimizer in trusted mode

Choose trusted mode when your own backend already signs in its users and only that backend calls TourOptimizer. The mode needs no sign-in service, no secret store and no Redis. It runs as one container, with MongoDB for jobs, or as several copies that share one MongoDB. The Trusted Mode section shows the setups on Linux, Windows, macOS and Kubernetes.

TourOptimizer in auth mode

Choose auth mode when users or clients sign in to TourOptimizer itself, or when tenants need plans, quotas and licenses that the stack keeps. Auth mode runs in the JOpt Platform stack, which also brings GeoCoderRouter for geocoding and road distances, JOpt.Solve in the browser and the MCP connector as options. The JOpt Platform section describes the stack and its operations; customers get it through the contact page.


Added: 2026-11-27 | Last updated: 2026-11-27