You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-8
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
# simple-aws-sqs-lambda-microservices
2
2
Simple [GraphQL](https://graphql.org/) APIs implementation using [Node JS](https://nodejs.org/en/docs/) and [AWS Lambda](https://aws.amazon.com/lambda/).
3
3
4
-
This example illustrates how to deploy [GraphQL](https://graphql.org/) APIs using [NodeJS](https://nodejs.org/en/docs/) functions running on [AWS Lambda](https://aws.amazon.com/lambda/) using the traditional [Serverless](https://www.serverless.com/framework/docs/providers/aws/guide/intro) Framework.
4
+
This example illustrates how to deploy **Microservices** using [NodeJS](https://nodejs.org/en/docs/) functions running on [AWS Lambda](https://aws.amazon.com/lambda/) using the traditional [Serverless](https://www.serverless.com/framework/docs/providers/aws/guide/intro) Framework.
5
5
This Example works with [AWS HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html) events.
6
6
7
7
<!---
@@ -15,7 +15,7 @@ To use the code in this example you **must** have an valid [AWS account](https:/
15
15
16
16
17
17
## Features
18
-
1.[AWS Lambda](https://aws.amazon.com/lambda/)function using [NodeJS](https://nodejs.org/en/docs/)
18
+
1.[AWS Lambda](https://aws.amazon.com/lambda/)functions using [NodeJS](https://nodejs.org/en/docs/)
19
19
2. Function is using latest version of [AWS SDK JavaScript v3](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) with all **ES6+** syntaxes like Promises, `async/await`
20
20
21
21
<olstart="3">
@@ -37,11 +37,10 @@ To use the code in this example you **must** have an valid [AWS account](https:/
37
37
6.[AWS HTTP API](https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop.html) are using [AWS API GateWay](https://aws.amazon.com/api-gateway/)
38
38
39
39
<olstart="7">
40
-
<li> All data is saved in <ahref="https://www.mongodb.com/docs/atlas/">MongoDB Atlas</a> i.e. <i>persistent</i>
41
-
<!--- <li> <strong>Caching</strong> is used for faster response in the APIs. <a href="https://redis.io/">Redis</a> is used for that purpose</li> -->
40
+
<!--- <li> All data is saved in <a href="https://www.mongodb.com/docs/atlas/">MongoDB Atlas</a> i.e. <i>persistent</i>
41
+
<li> <strong>Caching</strong> is used for faster response in the APIs. <a href="https://redis.io/">Redis</a> is used for that purpose</li> -->
42
42
<li> This APIs can also be consumed by any <b>Frontend Application</b>.</li>
43
-
<li> To use <ahref="https://graphql.org/">GraphQL</a> features <ahref="https://www.apollographql.com/docs/apollo-server/">Apollo Server</a> is used
44
-
<li> For the <i>Schema</i> generation <b>Type Definitions</b> are added. <b>Queries</b> are used for the <i>Reading</i> operations while <b>Mutations</b> are added for <i>Mutable</i> operations.
43
+
45
44
</ol>
46
45
47
46
@@ -76,13 +75,13 @@ $ serverless deploy
76
75
77
76
After successful deployment, you can invoke the deployed **functions / resolvers**.
78
77
79
-
However, to call using [GraphQL](https://graphql.org/)API you can use any *supported* Client like [Altair GraphQL Client](https://chrome.google.com/webstore/detail/altair-graphql-client/flnheeellpciglgpaodhkhmapeljopja?hl=en) with the `url` and *HTTP Verbs* as shown in Terminal after using `serverless deploy`.
78
+
However, to call HTTP API you can use any *supported*REST Client like [Talend API Tester](https://chrome.google.com/webstore/detail/talend-api-tester-free-ed/aejoelaoggembcahagimdiliamlcdmfm?hl=en) with the `url` and *HTTP Verbs* as shown in Terminal after using `serverless deploy`.
80
79
81
80
## API Listing
82
81
83
82
API listing is given below, -
84
83
85
-
**POST** /url-of-the-deployed-lambda/graphql have the following input JSON
84
+
**POST** /url-of-the-deployed-lambda/sendmessage have the following input JSON
0 commit comments