# Holoviz Panel - Inter-process communication

**URL:** <https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432>\
**Category:** Panel\
**Created:** [November 27, 2024, 2:29pm UTC](https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432 "2024-11-27T14:29:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeswork](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jeswork](https://discourse.holoviz.org/u/jeswork)\
**Post date:** [November 27, 2024, 2:29pm UTC](https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432/1 "2024-11-27T14:29:06Z")

</div>

Hi all,

this is likely a stupid question, but I can’t seem to find a good way to approach this. The core of it is simple; I want a Panel UI with a remote connection to some complex backend service. Ideally, I’d use zmq or tcp port. I can’t seem to find a way to have this connection non-blocking and integrated within my panel app. In essence I want a button to send a command on the port (easy enough); but then I want to listen for a reply and still have the UI functional while this happens. I’ve seen the streamz examples, but I’m not sure how to approach non-stream communications.

Any pointers would help, thanks!

---

<div class="post-metadata">

**Author:** ![Marc](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/marc/32/24_2.png) [@Marc](https://discourse.holoviz.org/u/Marc)\
**Post date:** [November 27, 2024, 5:20pm UTC](https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432/2 "2024-11-27T17:20:23Z")

</div>

Hi @jeswork

I think you would be looking to use async interfaces. Panel works really great with async.

---

<div class="post-metadata">

**Author:** ![ahuang11](https://discourse.holoviz.org/user_avatar/discourse.holoviz.org/ahuang11/32/4947_2.png) [@ahuang11](https://discourse.holoviz.org/u/ahuang11)\
**Post date:** [December 6, 2024, 1:57am UTC](https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432/3 "2024-12-06T01:57:12Z")

</div>

`ChatFeed` is written mostly asynchronously if you need an example, [panel/panel/chat/feed.py at 4e4c82b0426615dcfcdfe0dbc2f52c45a9278a5e · holoviz/panel · GitHub](https://github.com/holoviz/panel/blob/4e4c82b0426615dcfcdfe0dbc2f52c45a9278a5e/panel/chat/feed.py)

For a toy example, see

> [@Visual indicator to check if app is blocking main thread](https://discourse.holoviz.org/t/visual-indicator-to-check-if-app-is-blocking-main-thread/8246):
>
> If you’d like to see if any tasks are blocking, just add this to your app’s layout: import asyncio import panel as pn pn.extension() async def increment(): await asyncio.sleep(0.05) progress.value = (progress.value + 1) % 101 progress = pn.indicators.Progress(value=0) pn.state.add\_periodic\_callback(increment, period=100) progress.servable() For example: import time import asyncio import panel as pn pn.extension() async def increment(): await asyncio.sleep(0.05) progress.…

---

<div class="post-metadata">

**Author:** ![jeswork](https://discourse.holoviz.org/letter_avatar_proxy/v4/letter/j/e95f7d/32.png) [@jeswork](https://discourse.holoviz.org/u/jeswork)\
**Post date:** [December 13, 2024, 1:26pm UTC](https://discourse.holoviz.org/t/holoviz-panel-inter-process-communication/8432/4 "2024-12-13T13:26:18Z")

</div>

> [@ahuang11](#):
>
> ostly asynchronously if you need an

Thanks! I’ll check it out!
