I recently started working on AWS Lambda using Java and I need to understand how to properly structure a project like this.
Should I only create a single project for all the lambda functions, or should I create a project for each ?
I am currently following the former, and have created 10 lambda functions in one project.
I have avoided the use of Spring Boot and Spring for quicker cold start, less dependencies and smaller memory footprint, but the .jar size is already 20 MB.
Am I following a normal pattern, or how can I improve my project structure (see image) ?
Explanation: I have put all handlers in a single project and of course AWS will point to different handlers for each function.
I also want to ask, is it good design to keep them together or should I have different projects/modules for each lambda. For instance: deleteUser, disableUser etc.
Please guide me to start.
Thanks