-
Notifications
You must be signed in to change notification settings - Fork 316
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
ocpp library as an event based message handler #168
Comments
Current branch in PR #171 supports now the following usages:
Both new ways implement ASGI interface and therefore must be run behind ASGI server (e.g. uvicorn). Current implementation should now give clear idea of change but will still require quite a much polishing to make usage clear. The final goal is to implement also ASGI http.request handling but this will be out of scope of ocpp library in my opinion as the implementation will be heavily environment specific (e.g. AWS). |
I've been lately too busy on other work so haven't been able to proceed any further with this. However, my plan is to next try to make a "ASGI first" version and then try to think how current ocpp implementation would fit to that model. |
Quite a much time has passed since I had time to proceed with this change. But now I have a next iteration draft ready. Let me first review what has been done so far:
The code is by no means polished but the intention should be now clear. Please review the code a let me know what you think about the road ahead. I have no specific interest to start maintaining this library specifically so if this ocpp library can be extented to this direction then I'm happy to collaborate. However, at the same time I feel that ocpp-asgi -library tries to solve a different problem as ocpp -library. So in a way, it could also be it's own library. |
I've worked further to enable even based message handling (and ultimately running OCPP as serverless e.g with AWS Lambda). The library has evolved to 0.2.0 version, which could be stated as an alpha version. It has ASGI compliant interface and supports WebSocket as well as HTTP events (HTTP is what makes serverless possible). ASGI approach is relevant only when implementing Central System so it's even more clear that this must be a separate library. Please see and if anyone is interested or has business need for something like this then please let me know. I've also described the motivation and cloud architecture iterations that have inspired to continue this work. |
Enhancement issue based on original discussion topic: #165.
Main motivation for this is to:
The text was updated successfully, but these errors were encountered: