# Client Establishment in Singleton Pattern

**URL:** <https://forum.weaviate.io/t/client-establishment-in-singleton-pattern/847>\
**Category:** Support\
**Created:** [October 18, 2023, 6:42am UTC](https://forum.weaviate.io/t/client-establishment-in-singleton-pattern/847 "2023-10-18T06:42:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharanish](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dharanish/32/659_2.png) [@Dharanish](https://forum.weaviate.io/u/Dharanish)\
**Post date:** [October 18, 2023, 6:42am UTC](https://forum.weaviate.io/t/client-establishment-in-singleton-pattern/847/1 "2023-10-18T06:42:30Z")

</div>

Hi team , Need help in client creation in multi thread environment ,because we are trying singleton design pattern with lazy instantiation for weaviate . In this, while client establishment, another threads start executing and causes error  
“No Attribute client”. I just need two things. first , the client instantiation is synchronous or asynchronous, if this is asynchronous then I can easily using async await. Second, if not then how to resolve this??

---

<div class="post-metadata">

**Author:** ![DudaNogueira](https://yyz1.discourse-cdn.com/flex027/user_avatar/forum.weaviate.io/dudanogueira/32/7846_2.png) [@DudaNogueira](https://forum.weaviate.io/u/DudaNogueira)\
**Post date:** [October 23, 2023, 1:13pm UTC](https://forum.weaviate.io/t/client-establishment-in-singleton-pattern/847/2 "2023-10-23T13:13:59Z")

</div>

Hi!

Sorry for the delay here!

There are some discussion going on here:

> <https://github.com/weaviate/weaviate-python-client/issues/88>

Also, is good to mention that a new python client is being developed. Check more information about it: [Shape the Future - Try Our New Python Client API | Weaviate - vector database](https://weaviate.io/blog/collections-python-client-preview)

Thanks!
