The serverless functions are snippets of code or scripts that implement the application behavior. They can easily access database, external services, and library functions through an API toolkit. In the approach followed here, they have more straightforward development and deployment process than AWS Lambda or Google Cloud Functions (and other comparable technologies). They execute in the space of the server. Therefore, they do not require separate billing.

Serverless functions uses MVFLEX Expression Language (MVEL) which has largely been inspired by Java syntax. A snippet of a function is shown below.

import java.util.Map;
import java.util.HashMap;

user = func.getUser(idOfUser);
if (func.isResult(user) && func.isFailedResult(user)) {
  return user;

if (user.?accountId == null) {
  return new HashMap();

account = func.getObject("Account", user.accountId);

return account;

Here is a sample AJAX invocation.

      url: "/function/quote/createPolicy",
      type: 'post',
      data: Trillo.stringify(body),
      contentType: "application/json"
    }).done($.proxy(this.createPolicySucceeded, this, $e));