# Async Flow

Without [middleware](/advanced/middleware.md), Redux store only supports [synchronous data flow](/basics/data-flow.md). This is what you get by default with [`createStore()`](/api-reference/createstore.md).

You may enhance [`createStore()`](/api-reference/createstore.md) with [`applyMiddleware()`](/api-reference/applymiddleware.md). It is not required, but it lets you [express asynchronous actions in a convenient way](/advanced/async-actions.md).

Asynchronous middleware like [redux-thunk](https://github.com/gaearon/redux-thunk) or [redux-promise](https://github.com/acdlite/redux-promise) wraps the store's [`dispatch()`](/api-reference/store.md#dispatch) method and allows you to dispatch something other than actions, for example, functions or Promises. Any middleware you use can then interpret anything you dispatch, and in turn, can pass actions to the next middleware in the chain. For example, a Promise middleware can intercept Promises and dispatch a pair of begin/end actions asynchronously in response to each Promise.

When the last middleware in the chain dispatches an action, it has to be a plain object. This is when the [synchronous Redux data flow](/basics/data-flow.md) takes place.

Check out [the full source code for the async example](/advanced/example-reddit-api.md).

## Next Steps

Now that you've seen an example of what middleware can do in Redux, it's time to learn how it actually works, and how you can create your own. Go on to the next detailed section about [Middleware](/advanced/middleware.md).


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://redux-ru.js.org/advanced/async-flow.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
