Vibgyor Technologies, Oct 2024 to now

Spring Boot to FastAPI

Average API response time fell by about 50%.

Role
Software Developer, Full-Stack & AI
Domain
Backend
Stack
  • Python
  • FastAPI
  • SQL schema design

Average response time, relative to the original. About half after the rewrite.

1Problem

Legacy Java Spring Boot services had to move to Python without getting slower or less correct.

2Approach

  1. Redesigned the database schemas.
  2. Rewrote the core APIs in Python and FastAPI.
  3. Carried the backend implementation through the whole migration.
Spring Boot to FastAPI architectureLegacy Java Spring Boot services were replaced by core APIs rewritten in Python and FastAPI, on redesigned database schemas. Response-time goals were set before the redesign and shaped both.rewrite, response-time goals firstLegacy servicesJava, Spring BootCore APIsPython, FastAPIRedesigned SQL schemas

3Key decisions

  • Set response-time goals before the redesign.

    Performance targets shaped the schemas and APIs from the first draft.

4Result

About 50% lower average API response time, on schemas and APIs designed around that goal.

Want to go deeper on this project?

I can walk you through the decisions and trade-offs behind it.

Email hello@jaygadhiya.com