knix-microfunctions / knix

Serverless computing platform with process-based lightweight function execution and container-based application isolation. Works in Knative and bare metal/VM environments.

Home Page:https://knix.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Enable AWS Lambda context object compatibility

ksatzke opened this issue · comments

KNIX python function handlers have a context object just like AWS Lambda python and Java function handlers have, but some of the properties of the corresponding AWS context object are still missing in the KNIX implementation.

This implementation task will be performed in the feature/AWS_API_compatibility branch, targeting full Lambda object compatibility for KNIX.

From the changes I saw, it looks like we also need to update the API object for the Java functions in KNIX.

Are there other changes/additions that need to be done? If not, I can take the modified Python API and apply it for Java functions.

I added the modifications necessary for the Java worker, but it needs testing.

Added Java context test as well.

I am not sure whether we are going to support different versions etc. as intended, but at this point, we wouldn't have to worry about existing code breaking due to migration to knix.

I think we can merge this.

@ksatzke : Could you open a PR please?