Andl provides the following Thrift-related capabilities.
- The Andl compiler can generate a Thrift Interface Definition Language (IDL) file as an optional output.
- The Andl runtime performs data conversion to and from the format required by Thrift classes for wire transmission.
That’s all you really need. To put together a complete application involves the following steps.
- Write the database backend in Andl.
- Compile with the /t switch to generate the Thrift IDL. Compiled data and code are stored in a database catalog.
- Run the Thrift IDL compiler to generate an API of callable functions in the target language.
- The release includes a generic server written in C# using Thrift classes, which can be modified to suit specific needs. It simply needs to load the catalog.
- The release also includes sample client programs using both Thrift classes and the target language API functions, but containing no Andl code or functions at all.
- The developer should modify the client programs or create new ones that call the target language API according to the needs of the application.
And that’s it. Mostly it is just Thrift and the Thrift documentation applies. The end result is that you can write an Andl program that exposes a set of callable entry points, and then call them from any Thrift-supported language.
Check the Downloads page for the current release.