在Django中部署REST API

0

【以下的问题经过翻译处理】 我在Django中开发了一个REST API,并现在需要在AWS中部署它。应该使用哪个AWS服务?架构将会是什么?是否有架构?

1 réponse
0

【以下的回答经过翻译处理】 由于Django可以自己处理身份验证、API限流等等,通常直接在EC2实例上部署。因此,推荐使用弹性BeanStalk。你也可以将其部署在Lambda上,但你需要用API网关来暴露它,这会与Django Rest Framework产生冲突。因此,EC2是最好的选择,可以通过弹性BeanStalk进行部署。

profile picture
EXPERT
répondu il y a 8 mois

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions