#473 serveless implementation using aws compute engine and serverless fram…#714
#473 serveless implementation using aws compute engine and serverless fram…#714iluwatar merged 14 commits intoiluwatar:masterfrom
Conversation
|
Hi, AWS is a Serverless FaaS technique, but what about BaaS? According to https://martinfowler.com/articles/serverless.html serverless is not just about moving server side code into some ephemeral function, but also integration of third party remote application services directly into the front-end of our app, as an example for BaaS https://firebase.google.com/docs/database/. It would be nice to add a gateway API and to do 2 calls, one for AWS(FaaS) and other for firebase, or others,(BaaS). |
|
@roman-marcu acknowledge, will add BaaS endpoints... API gateway is already configured in the stack which is created by serverless framework, will expand documentation, please take a look at http section in serverless yaml |
|
@dheeraj-mummareddy the pull request has conflicts. Can you check it? |
|
@iluwatar the PR is ready for review, the build passes locally but is not healthy in travis and looks like its failing for all other commits too. Is someone looking at the failure? [INFO] throttling ......................................... FAILURE [ 2.287 s] |
|
It is a known issue #643, still unresolved |
serverless/README.md
Outdated
| categories: Architectural | ||
| tags: | ||
| - Java | ||
| - Difficulty-Intermittent |
There was a problem hiding this comment.
@iluwatar I feel like the difficulty level is Intermediate based on the complexity to adopt, but let me know your thoughts?
There was a problem hiding this comment.
I mean literally, Difficulty-Intermittent is wrong...
There was a problem hiding this comment.
@iluwatar good catch, I think I copied the initial template from EIP patter, yup...will fix that with an other PR.
serverless/README.md
Outdated
| * Serviceful operations | ||
| * Automated operations | ||
| * monitored applications | ||
| * Innovation mindset |
There was a problem hiding this comment.
Any links that would explain more about these katas? The terms alone are not enough.
| ## AWS lambda function implementation | ||
|
|
||
| AWS lambda SDK provides pre-defined interface `com.amazonaws.services.lambda.runtime | ||
| .RequestHandler` to implement our lambda function. |
| * cloud watch (log groups) | ||
| * API Gateway (ApiGatewayRestApi) | ||
| * Lambda function | ||
| * DynamoDB collection |
There was a problem hiding this comment.
Spelling, cloud formation -> CloudFormation, cloud watch -> CloudWatch
| import java.io.Serializable; | ||
|
|
||
| /** | ||
| * Address Object |
| import java.io.Serializable; | ||
|
|
||
| /** | ||
| * Person Request |
| import static org.mockito.Mockito.verify; | ||
|
|
||
| /** | ||
| * Created by dheeraj.mummar on 3/5/18. |
| import static org.mockito.Mockito.*; | ||
|
|
||
| /** | ||
| * Created by dheeraj.mummar on 3/4/18. |
| import static org.mockito.Mockito.when; | ||
|
|
||
| /** | ||
| * LambdaInfoApiHandlerTest |
|
@dheeraj-mummareddy are you working on this? Please comment when you want another review. |
|
@iluwatar yes, its ready for review. Thanks! |
iluwatar
left a comment
There was a problem hiding this comment.
- the package of the tests is misspelled
java.com.illuwatar - not every new file has the required license header, run the build to generate them
serverless/README.md
Outdated
| categories: Architectural | ||
| tags: | ||
| - Java | ||
| - Difficulty-Intermittent |
There was a problem hiding this comment.
I mean literally, Difficulty-Intermittent is wrong...
serverless/pom.xml
Outdated
| <parent> | ||
| <groupId>com.iluwatar</groupId> | ||
| <artifactId>java-design-patterns</artifactId> | ||
| <version>1.19.0-SNAPSHOT</version> |
There was a problem hiding this comment.
Should be updated to 1.20.0-SNAPSHOT
|
@dheeraj-mummareddy please comment when the (minor) changes are done so we can proceed with the merge |
|
@iluwatar change have been fixed. |
|
Good work @dheeraj-mummareddy thank you very much for this contribution 👍 |
|
@all-contributors please add @dheeraj-mummareddy for code |
|
I've put up a pull request to add @dheeraj-mummareddy! 🎉 |
serveless implementation using aws compute engine and serverless framework
Pull request description