25 Apr, 2023 / casestudy By: Aswathy Raj

We developed an AI-powered platform that utilizes photometry, radiometry, and computer vision to efficiently classify seeds and analyze seed quality. To enhance the user experience, we revamped the frontend and hosted it on S3, utilizing Cloudfront as a global CDN to improve website performance. Our codebase was managed using Gitlab and Gitlab CI, but we later transitioned to Github for source versioning and used CodeBuild for CI/CD. To resize user-uploaded images, we used Imaginary, an open-source API, and implemented Keycloak for user authentication. For sending emails, we relied on Amazon SES.

Our backend endpoints were created with Amazon ECS with Fargate, which scales up on memory metrics and down during low traffic periods. We used AWS Cloudwatch to store the logs of these services, allowing us to query based on various criteria. To monitor usage, we implemented NATS Exporter, Redis Exporters, and Prometheus as a data source for Grafana, which we used to create a dashboard for visualizing load and flow. To receive alerts for service outages, we utilized a self-hosted Nagios server, which notified us via email and phone calls.

For monitoring and troubleshooting our microservices-based distributed services, we used Jaeger. By utilizing these various services and tools, we were able to create an efficient and reliable platform while also reducing costs.

The codebase was tested for quality using SonarQube, which was configured on a remote machine. Additionally, Jenkins CI was set up to test builds.

We utilized Amazon Lightsail to host our WordPress sites that featured blog content. Mantis ticketing system was used to manage issues and assign tasks among team members.

AWS Elastic Cache was implemented for Redis, where a two-node cluster was deployed in the production environment, and a single node was deployed in other environments. For cloud-native messaging, we utilized Bitnami NATS, a lightweight messaging server that was written in Go.We integrated GitLab builds for Android applications and TestFairy for mobile application testing. To create an offline environment, we installed Jenkins on an ARM machine to generate Docker .tar files and upload them to an S3 bucket. For error tracking and bug fixing, Sentry was utilized. Ansible was used in conjunction with GitLab CI to launch a spot instance GPU. Pritunl VPN was configured to allow client-side developers to access our private resources.


  1. Due to connectivity issues at most of our client locations, we required the application to be functional in offline conditions.


We utilized our dockerized services to generate a .tar file and a script for launching GPU machines.

  1. We require a GPU for one of our AI training services, but running a GPU continuously would result in higher EC2 cost.


We incorporated Ansible into GitLab CI to launch a spot instance GPU and install all Python requirements. We also ensured that the Python application ran on the spot instance and terminated the instance once execution was complete. Additionally, we developed a Lambda function to terminate the instance in case the GitLab pipeline failed to do so.

  1. Cloud Platform
    1. AWS
  2. Source Code Management
    1. Gitlab
    2. Github
  3. Continuous Integration & Deployment
    1. CodeBuild
    2. Jenkins
  4. Databases
    1. Redis
    2. PSQL
  1. Infra Provisioning Tools & Configuration Management
    1. Terraform
    2. Aws-Cli
    3. Ansible
  2. Containerization & Deployment
    1. Docker
    2. ECS – Fargate
  3. Message Queuing
    1. NATS
  4. Authentication
    1. Keycloak
  1. AppQuality Testing
    1. Testfairy
  2. Web Hosting
    1. AWS S3
    2. AWS Lightsail
  3. Logging, Monitoring & Alerting
    1. Grafana
    2. Prometheus
    3. Nagios
    4. Cloudwatch
    5. Jaeger
  1. Load Balancing
    1. AWS ALB
  2. Content Delivery Network
    1. AWS Cloudfront
  3. Storage
    1. S3
    2. EBS
  4. Collaboration and Ticketing
    1. Mantis