# Sharing data between callbacks

**URL:** <https://community.plotly.com/t/sharing-data-between-callbacks/48415>\
**Category:** Dash Python\
**Created:** [December 22, 2020, 3:18pm UTC](https://community.plotly.com/t/sharing-data-between-callbacks/48415 "2020-12-22T15:18:38Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![Emil](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/emil/32/31734_2.png) [@Emil](https://community.plotly.com/u/Emil)\
**Post date:** [December 22, 2020, 3:42pm UTC](https://community.plotly.com/t/sharing-data-between-callbacks/48415/2 "2020-12-22T15:42:30Z")

</div>

The slow performance is not (only) due to the serialization to JSON, in most cases it’s mainly due to the transfer of data between the server and the client. You can avoid it all by caching the data on the server. I made a small library to ease the pain,

> **[thedirtyfew/dash-extensions - ServersideOutputTransform](https://github.com/thedirtyfew/dash-extensions#serversideoutputtransform)**
>
> Contribute to thedirtyfew/dash-extensions development by creating an account on GitHub.

but you could also implement the caching manually.

---

_[View the full topic](https://community.plotly.com/t/sharing-data-between-callbacks/48415)._
