# Rasa Server - Sanic

**URL:** <https://forum.rasa.com/t/rasa-server-sanic/15237>\
**Category:** Rasa Open Source\
**Created:** [September 4, 2019, 3:18pm UTC](https://forum.rasa.com/t/rasa-server-sanic/15237 "2019-09-04T15:18:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![saideep-g](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/saideep-g/32/4518_2.png) [@saideep-g](https://forum.rasa.com/u/saideep-g)\
**Post date:** [September 4, 2019, 3:18pm UTC](https://forum.rasa.com/t/rasa-server-sanic/15237/1 "2019-09-04T15:18:20Z")

</div>

I see that Sanic framework is used for Rasa Server

 ![image](https://europe1.discourse-cdn.com/flex013/uploads/rasa/original/2X/b/b1d65d01498c65cbc976b5d201a46227c4081dbe.png)

Is there a reason for choosing Sanic over other python frameworks/server?

---

<div class="post-metadata">

**Author:** ![lahsuk](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/lahsuk/32/3127_2.png) [@lahsuk](https://forum.rasa.com/u/lahsuk)\
**Post date:** [September 5, 2019, 6:19am UTC](https://forum.rasa.com/t/rasa-server-sanic/15237/2 "2019-09-05T06:19:14Z")

</div>

If I recall correctly, prior to version 1.0, flask server was used. Sanic is a drop-in (sort of) replacement for flask with async requests so, that may be the reason.

---

<div class="post-metadata">

**Author:** ![msamogh](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/msamogh/32/3478_2.png) [@msamogh](https://forum.rasa.com/u/msamogh)\
**Post date:** [September 9, 2019, 1:04pm UTC](https://forum.rasa.com/t/rasa-server-sanic/15237/3 "2019-09-09T13:04:50Z")

</div>

Our reasons for using Sanic is the same as anyone’s reason to switch to an asynchronous server. You can perform other tasks while waiting for I/O without using multithreading.

---

<div class="post-metadata">

**Author:** ![tahamr83](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.rasa.com/tahamr83/32/8114_2.png) [@tahamr83](https://forum.rasa.com/u/tahamr83)\
**Post date:** [November 11, 2019, 10:42pm UTC](https://forum.rasa.com/t/rasa-server-sanic/15237/4 "2019-11-11T22:42:03Z")

</div>

Are the libraries for the implementation of the tracker stores given out-of-the-box by rasa inherently async? I have a suspicion that they are not

---

<div class="post-metadata">

**Author:** ![keppie](https://avatars.discourse-cdn.com/v4/letter/k/f17d59/32.png) [@keppie](https://forum.rasa.com/u/keppie)\
**Post date:** [October 5, 2020, 10:23am UTC](https://forum.rasa.com/t/rasa-server-sanic/15237/5 "2020-10-05T10:23:39Z")

</div>

The main parts of RASA have been converted to use the async style of programming. External services like action server and NLG are now being called using async http. Nice.

So, when will the tracker store be converted to async style? I would expect the main tracker store methods to be async (get\_or\_create\_tracker, save, …), to allow us to implement a tracker store using an async database library for instance…
