-
Notifications
You must be signed in to change notification settings - Fork 408
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
Queue mode doesnt seem to work when testing Leshan client 2.0 + server 2.0 #1598
Comments
Hi, At client sideLeshan Client doesn't really implement queue mode. But with leshan-client-demo you can simulate it with :
This should partially solve your NAT issue. (expect for observations) At server sideLeshan Server implement queue mode but it does not provide facility to Queue/Store requests. Note that LWM2M specification says :
This is more a "client initiated mode" than a "queue mode". Leshan server provides :
Then user can build their own way to queue/store request if needed. |
Yep this is the expected behavior of leshan-server-demo. Note that leshan-server-demo is just a demo not a production ready server.
Yes if you are using Leshan Library to create your own LWM2M server; it's up to you to use to store requests how you want and when presence service say your client is awake, just send this requests like you want. |
Ok ! Thanks for confirmation. Do you know an example of production server that handles queue mode today in the "IoT industry" ? Actually I am interested to "benchmark" this mode and see if there are some limitations etc ... Then if we are interested reusing Eclipse Leshan we will use code and update code for our case |
Note that it would be very easy to implement an in memory version for leshan-server-demo but I 'm not sure it would be very useful. Because :
You mean a library which store request out of the box ? Nope I don't know (but I never searched)
I'm not sure which kind of limitation you have in mind ?
I'm not sure I get you. If you are talking about leshan-server-demo, you should not reuse it for production use case : https://github.com/eclipse-leshan/leshan/wiki/F.A.Q.#could-i-reuse-leshan--demo- |
About limitations, ok there are no limitations in the queue mode concept, this was more on the way it would be implemented by the people who produce/code the server. Yes I was not planning the change the library code but the leshan demo to add queue mode support for testing, anyway I have to look on some already production platform that supports LwM2M + queue mode (like Vodafone or others). |
I implemented queue mode on top of Leshan for a customer's cellular applications with a larger number of devices, and it worked as expected. I can understand Simon's concern about queuing in Leshan demo memory, but, well, if people deploy the Leshan demo in prod, they are already doomed. |
When I found time, I could try to think how it could looks like. 🤔 |
Thanks a lot ! |
@EmbGangsta do you plan to test the PR ? |
I would like but I am very busy at work these days ... I can wait for your integration into a new Leshan release |
OK so I integrated it now in I close the issue but you can reuse this issue OR the PR #1645 if you want to provide feedback about that. |
Thanks. I will have to recompile the JAR and put it on our company server for testing |
Which JAR are you talking about ? (so theoretically nothing to recompile, except you are using a modified version of leshan-demo-server which does not smell so good 😬) |
No I will use your demo server JAR directly ;) |
😌 |
Version(s)
2.00
Which components
Server
Tested With
Leshan client and servers on 2.00
What happened
I am testing the queue mode in this scenario:
I am missing something ?
How to reproduce
No response
Relevant Output
No response
The text was updated successfully, but these errors were encountered: