Trillo Workbench Lessons
  • Introduction
    • Sample Application
  • Introduction to Lessons
    • IDE Lessons
    • Annotated Directory Structure
  • New classes using workbench UI
  • Save many records into tables using the workbench UI
  • New function using Workbench UI
  • Introduction to Code Lessons
    • Anatomy of Trillo Function
  • Begin Code Lessons
    • Paginated list
    • Pagination using SQL Query
    • DataIterator
    • Read file from cloud storage bucket
    • Generating signed URL for a file download
    • Import a CSV file from bucket into BigQuery
    • Query a dataset of BigQuery
    • Using an Document AI Processor
    • Chat using GenAI
    • Function calling another function
    • Accessing Runtime Context
    • Write a workflow (pipeline for data processing)
  • Appendixes
    • ServerlessFunction
    • Map, List and Tree
    • Logs and Audit Logs
    • DataRequest Class
    • DataResponse Class
    • DataIterator Class
    • Result
Powered by GitBook
On this page

Introduction to Code Lessons

The following exercises use code. The code is written in Java (simple core java). In future, Python examples will be provided.

Note: You can write code using Trillo Workbench UI. It works for a simple program. If you need to use a source line debugger then writing code using local IDE makes more sense. The first lesson will show both ways.

The following lessons cover important concepts of Trillo Workbench and how to program it using serverless functions (referred as Trillo functions). Trillo functions are different from GCP/Azure functions or AWS lambda in the following way.

  1. They don’t deal with the database connection management, and complexities of the cloud. They use Trillo Workbench SDK API, which hides complexities. This means that the Trillo Workbench is required to run them.

  2. Trillo Workbench acts as a restful API gateway with OAuth2 security layer therefore API gateway configuration is not required.

  3. Trillo Workbench deploys them..

  4. Trillo Workbench abstraction makes them cloud agnostic.

The following sections describe a few concepts that would be used in the lesson. They are simple and obvious therefore not repeated with each lesson.

PreviousNew function using Workbench UINextAnatomy of Trillo Function

Last updated 1 year ago