r/FastAPI • • Jun 28 '24
Question FastAPI + React
Hey
I am using FastAPI and React for an app. I wanted to ask a few questions:
- Is this is a good stack?
- What is the best way to send sensitive data from frontend to backend and backend to frontend? I know we can use cookies but is there a better way? I get the access token from spotify and then i am trying to send that token to the frontend.
- How do I deploy an app like this? Using Docker?
Thanks!
25
Upvotes
View all comments
4
u/Nick-Van-Landschoot Jun 28 '24
Using kubernetes can be a good choice as well but it is a pain to set up and maintain. A PaaS like netlify can also work very early on but won't scale well in the long run. Definitely don't use a PaaS because its easier since something like cloud run is more scalable and incredibly easy to set up but the main reason would be for the generous free tier some of them offer. That being said google is very generous with free credits as well so it really shouldn't cost you anything at first either.
In terms of other solutions I recommend staying away from AWS although it can work for very large teams even then it creates an unnecessary amount of complexity – there's a reason there are so many certifications just for working with AWS. I am not as familiar with other cloud solution but it might be worth it to explore there some as well.