Skip to main content

Case study

Architecture Audit and Improvements for Thoughtful Automation

response delay
Headline result~1 sec
Thoughtful Automation 1

Thoughtful Automation

Thoughtful Automation, a platform dedicated to streamlining business processes, sought our expertise to conduct a comprehensive architecture audit and implement necessary improvements. By leveraging our in-depth analysis of the frontend, backend, and AWS infrastructure, we aimed to address existing issues and optimize the platform's performance.

// Challenges

Thoughtful Automation's backend, built as a single express server stored in a lambda, presented runtime challenges. Additionally, the frontend and AWS architecture failed to meet the client's requirements, necessitating a thorough overhaul.

// Solutions

  • Backend Refactoring

    To enhance backend stability, we opted to rewrite it entirely using Typescript, employing a type-safe approach. We also incorporated VPC configurations for databases to bolster security and rebuilt the Postgres database for improved data manipulation speed.

  • Frontend Reconstruction

    Given the initial JavaScript-based frontend's limitations, we undertook a rewrite using Typescript, improving stability through a type-safe approach.

  • AWS Architecture Enhancements

    We adopted serverless architecture to optimize CI/CD management, adhering to microservices best practices. By dividing the architecture into separate AWS Lambdas, we ensured streamlined functionality. Furthermore, we reconstructed the serverless configuration to ensure error-free deployments.

//additional features

  • Real-Time Bot Actions

    Leveraging AWS Lambdas, we enabled real-time updates from bots with less than a one-second delay, updating the database logs accordingly. Future plans involve integrating WebSockets API Gateway to further enhance real-time functionality.

  • Scheduled Bot Execution

    We employed AWS Step Functions to enable precise scheduling of bot executions at specific times, ensuring accurate and timely automation.

  • High-Performance Filtering and Sorting

    By designing an optimized database structure and implementing efficient indexing, we significantly enhanced the platform's filtering and sorting capabilities, enabling swift data retrieval.

Thoughtful Automation 2

// results

Impact

Following the refactoring phase, Thoughtful Automation experienced substantial performance improvements. Backend response time and frontend loading time reduced to under 50 ms and 2 seconds, respectively, for main information pages upon initial load. Additionally, we addressed AWS Lambda cold starts, allowing backend requests to be handled in under a second.

Moreover, our security enhancements included VPC configurations for databases, enhanced authentication handling, and improved database structure and credentials storage.

These improvements elevated the value of Thoughtful Automation's services, empowering users to navigate extensive bot logs and job executions. The platform now meets the primary needs of its users, enabling our client to promote it as an exceptionally effective service.

Thoughtful Automation 3

Tell us which workflow Claude should run

Send a few lines about the process and the systems involved. Kyrylo replies with the next steps, or you can book a call.

Kyrylo Kozak

Founder and CEO

Book a call (opens in a new tab)

Read the privacy policy.