Embedded database
Let’s look at a scenario where you might want to give Java access to an in-memory data grid. For example, your Java application needs a truly scalable, distributed database, with no-hop or one-hop access to data.Sometimes, you have an architecture where many applications access content frequently from within the process heap. One example of this is session state data, but there are other cases like where a number of external applications or clients need real-time pricing or some other mathematical calculations.
In these types of scenarios, you can embed the SQLFire engine into Java applications by including the required SQLFire libraries in your JVM. When the application initiates a connection to SQLFire, it starts a peer server that joins other peers in the same cluster. Unlike other embedded databases such as H2 or Derby, SQLFire allows several servers to store replicated and partitioned tables, persist data to disk, communicate directly with other servers, and participate in distributed queries.
|