This is a simple Vertx project deployed as AWS Lambda. It demonstrates how easy it is to create, manage and deploy a truly serverless micro service. Using the Serverless Framework deploying and managing was never so easy.
Project is a url shortening service, like tinyurl, bitly... It relies on Vertx Async Api and AWS Lambda service.
-
URL:
POST /api
- Params type:
json
- Required Body Params:
longurl
- Output:
shorturl
- Params type:
-
URL:
GET /{shorturl}
- Required Path Params:
shorturl
- Output:
redirect to longurl
- Required Path Params:
To run/deploy this example you will need to install Serverless
Open serverless.env.yml and change JDBC parameters.
After you are done here are the necceserry commands.
$ mvn clean package
$ serverless deploy -v
After this you should have your Lambda service up and running. You can find a blog post about this example here.