Application with Embedded TFS
The Transactional File Server Interface with Embedded Database Library version of the TFS library provides all of the functionality available in the Transactional File Server Interface with In-memory Database Library version of the library discussed in the Application with In-Memory TFS section of this document. The embedded TFS library version also includes the persistent storage capability.
A TFS instance within the application is capable storing data in user defined docroot directory. The docroot directory can store one or more database images associated with this TFS instance.
All the RaimaDB components linked into a single application is the simplest RaimaDB application design. This configuration will be used by most of the example programs included in the product installation. However, ALL of those examples can be easily modified to work in any of the following configuration descriptions.
The above diagram shows the user executable as a single process that can have one or more threads running with the TFS embedded in the application process. The benefits of this configuration if the application design specification allows is:
- Simple application installation
- Only one application process will have access to the database image(s).
- High performance as remote procedure calls are eliminated.
Link Library Reference
The TFS library used for standalone database applications will be the Transactional File Server Interface with Embedded Database Library. The referenced section will list the dependency RaimaDB libraries that will also need to be included when linking your application.