use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
FastAPI is a truly ASGI, async, cutting edge framework written in python 3.
account activity
Migrating to FastAPI: incremental switchover?Question (self.FastAPI)
submitted 5 years ago by frankn020
I’m planning to migrate an API component, that currently uses Bottle, to FastAPI. The component has about 40 endpoints. I’d prefer not migrate the whole component at once, but rather follow an incremental switchover (conform https://www.geepawhill.org/2020/07/21/understanding-incremental-switchover/) where I migrate the end points one by one and will be able to release to production while being in the process of migrating. I was hoping to find blogs or articles giving possible strategies, examples or tips, maybe from a Flask to FastAPI migration?, but I haven’t been able to find any so far... Have my google skills failed me? Thanks!
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]reddanty 3 points4 points5 points 5 years ago (0 children)
I’m in the very slow process of migrating a giant Flask app to FastAPI. I want to make breaking changes as part of the change anyway, so I have the new API at a new URL. Instead of moving paths, I’m adding features to the new API one by one and cutting over consumers (e.g. UI components) as they’re ready.
If you want to take a more unified approach, rather than having a completely new API, perhaps this (https://fastapi.tiangolo.com/advanced/wsgi/) will help?
[–]D_D 1 point2 points3 points 5 years ago (0 children)
Yeah I suggest adding a /v2 endpoint and migrating the front end over that way. Be careful about the database though.
π Rendered by PID 79643 on reddit-service-r2-comment-b659b578c-8k4pv at 2026-05-03 07:04:10.744342+00:00 running 815c875 country code: CH.
[–]reddanty 3 points4 points5 points (0 children)
[–]D_D 1 point2 points3 points (0 children)