# Substitution of multiprecessing.Manager in Ray?

**URL:** <https://discuss.ray.io/t/substitution-of-multiprecessing-manager-in-ray/694>\
**Category:** Ray Core\
**Created:** [February 2, 2021, 1:52pm UTC](https://discuss.ray.io/t/substitution-of-multiprecessing-manager-in-ray/694 "2021-02-02T13:52:55Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ang](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/ang/32/255_2.png) [@ang](https://discuss.ray.io/u/ang)\
**Post date:** [February 2, 2021, 1:52pm UTC](https://discuss.ray.io/t/substitution-of-multiprecessing-manager-in-ray/694/1 "2021-02-02T13:52:55Z")

</div>

Is there a substitution of `multiprocessing.Manager` in Ray to share general python objects like `dict` and `list` with a server process?

My main purpose is to share a big dictionary between ray workers without copying the dictionary to each worker repeatedly, which relates to the [issue#6979](https://github.com/ray-project/ray/issues/6976).

---

<div class="post-metadata">

**Author:** ![Alex](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.ray.io/alex/32/341_2.png) [@Alex](https://discuss.ray.io/u/Alex)\
**Post date:** [February 2, 2021, 9:38pm UTC](https://discuss.ray.io/t/substitution-of-multiprecessing-manager-in-ray/694/2 "2021-02-02T21:38:33Z")

</div>

Hey, we don’t have a built in version of the multiprocessing Manager API, but you can achieve this using Ray primitives.

As you already alluded to, there are some performance subtleties (I’d recommend reading this: [Serialization — Ray v2.0.0.dev0](https://docs.ray.io/en/master/serialization.html)).

Could you provide more details about your workflow? (Maybe using Actor Pools could help with performance too [Using Actors — Ray v2.0.0.dev0](https://docs.ray.io/en/master/actors.html#actor-pool))
