Azure / Azure/azure-iot-sdk-python

[Technical Question] IoTHubModuleClient method send_message takes lot of time

Abierto
#1,155 1 comentario 0 reacciones 0 asignados Ver en GitHub
IoTSDK question
Lenguaje dominante
Python
Estrellas
438
Forks
380
Merge medio
22 h 17 min
PR fusionados (30 d)
22

Descripción

Hi Team,

I am trying to use send_message method of the async IoTHubModuleClient class
```

# The client object is used to interact with your Azure IoT hub.
module_client = IoTHubModuleClient.create_from_edge_environment()

# Connect the client.
await module_client.connect()

async def send_test_message(i):
print("sending message #" + str(i))
msg = Message("test wind speed " + str(i))
msg.message_id = uuid.uuid4()
msg.correlation_id = "correlation-1234"
msg.custom_properties["tornado-warning"] = "yes"
await module_client.send_message(msg)
print("done sending message #" + str(i))
```

i tried measuring the time taken for **send_message** and it is around 300 milliseconds. Is there a way to reduce this time ?
![image](https://github.com/Azure/azure-iot-sdk-python/assets/10043245/424c851e-c3a1-49f8-9c26-fe5aaa9f0bf6)

Guía de contribución

Abrir la guía de contribución

Línea de trabajo

No se nombra ningún archivo del repositorio ni ninguna prueba; comience en el punto de entrada async IoTHubModuleClient.send_message y compare el tiempo alrededor de await. Una resolución útil establecería si los ~300 ms indicados son esperables o identificaría un cambio reproducible que los reduzca.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
azure, python
Área
embedded-iot, networking
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
20/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.