Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redesign wait on BAP-Client on return leg of point to point request #192

Open
vbabuEM opened this issue Jun 20, 2024 · 2 comments
Open

Redesign wait on BAP-Client on return leg of point to point request #192

vbabuEM opened this issue Jun 20, 2024 · 2 comments
Assignees
Labels
enhancement New feature or request protocol server protocol server

Comments

@vbabuEM
Copy link
Contributor

vbabuEM commented Jun 20, 2024

In the return leg of Select and other P2P request, there is a 100ms timer that results in a variable delay of less than 100ms in the BAP Client. Redesign the Protocol Server to remove this delay and make the return immediate.

@shreyvishal
Copy link
Contributor

Current Status:
Have Worked on this and below are my observations and Suggestion:

  • Observation
    Currently when the BAP-Network receives the on_action response from the BPPs then it stores the data to mongoDb instance that is used for caching by both BAP-Client and BAP-Network, and there is a setInterval for 100ms running on BAP-Client checking for the response received

  • Suggestion
    Instead of storing the the response coming from BPP to the mongoDb cache we can send that response to the message queue from the BAP-Network and the BAP-Client will listen on that queue and will receive the response send it directly to the Client

cc: @vbabuEM

@vbabuEM
Copy link
Contributor Author

vbabuEM commented Jul 29, 2024

This has to be synchronous response on the client side. How will you achieve that with the Suggestion?
@shreyvishal

@shreyvishal shreyvishal added the protocol server protocol server label Aug 6, 2024
@emmayank emmayank added the enhancement New feature or request label Aug 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request protocol server protocol server
Projects
None yet
Development

No branches or pull requests

3 participants