我使用燒瓶構建後端API的應用程序時,有一件事我需要做的是:在燒瓶中使用什麼庫來實現這種異步操作?
1. get the content the user submited
2. send a twitter with that content
3. save the content to my DB and return the id of the new item
現在的問題是,第2步的時間太長的時間,因此減慢了總計請求時間。
更具體,步驟2:twitter.send(content)
我如何才能讓第2步異步? PS:我不需要知道第2步是否成功