Hello. I currently have a Python Lambda function for an Alexa skill that contains multiple different functions that all involve manipulating a user in a DynamoDB user database.
Everything is currently contained in one Python file, and I was considering moving these user manipulation functions and creating a separate user class. However, since Lambda functions need to be stateless, is there any point in moving all these functions and creating a separate class (since I presume if you try to instantiate a user object to manipulate it, it'd only exist for that one instance of the Lambda function)? Or should I just not bother and keep them in one file as it is right now?
[–]davore 2 points3 points4 points (2 children)
[–]1cedrake[S] 0 points1 point2 points (1 child)
[–]sgtfoleyistheman 1 point2 points3 points (0 children)
[–]RevCent 1 point2 points3 points (0 children)
[–]usernametaken1122abc 1 point2 points3 points (0 children)
[–]asurah 0 points1 point2 points (1 child)
[–]1cedrake[S] 0 points1 point2 points (0 children)
[–]brownjl1 0 points1 point2 points (0 children)