# Why should we use Async over AJAX?

**URL:** <https://forum.djangoproject.com/t/why-should-we-use-async-over-ajax/297>\
**Category:** Using Django\
**Created:** [September 23, 2019, 11:20pm UTC](https://forum.djangoproject.com/t/why-should-we-use-async-over-ajax/297 "2019-09-23T23:20:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![andyide](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/andyide/32/5218_2.png) [@andyide](https://forum.djangoproject.com/u/andyide)\
**Post date:** [September 23, 2019, 11:20pm UTC](https://forum.djangoproject.com/t/why-should-we-use-async-over-ajax/297/1 "2019-09-23T23:20:08Z")

</div>

I’m still trying to get in my head why I would use Async over AJAX.

Now I know AJAX kinda sucks as a programming pattern but it has been around for a long time and is reasonably well understood.

Am I limiting myself to only thinking about forms?

Why should we use Async (when it is implementedi n Django 3+)?

---

<div class="post-metadata">

**Author:** ![andrewgodwin](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/andrewgodwin/32/2_2.png) [@andrewgodwin](https://forum.djangoproject.com/u/andrewgodwin)\
**Post date:** [September 24, 2019, 3:47am UTC](https://forum.djangoproject.com/t/why-should-we-use-async-over-ajax/297/2 "2019-09-24T03:47:41Z")

</div>

I think you’re thinking the two things are mutually exclusive, when really you want to use them together!

An asynchronous Django will let you write AJAX views that are more efficient, and use less CPU time - async doesn’t change how you communicate with the browser.

You may be thinking of WebSockets, rather than async, which I agree would be a difficult tradeoff - but Django is not adding WebSocket support as part of the async work, just support to make normal HTTP run faster and in parallel if you want it.

---

<div class="post-metadata">

**Author:** ![andyide](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.djangoproject.com/andyide/32/5218_2.png) [@andyide](https://forum.djangoproject.com/u/andyide)\
**Post date:** [September 24, 2019, 5:01am UTC](https://forum.djangoproject.com/t/why-should-we-use-async-over-ajax/297/3 "2019-09-24T05:01:33Z")

</div>

Ok. Thanks Andrew!

I’m looking forward to version 3.1!
