Skip to content

Commit fc25c39

Browse files
some improves
1 parent 3bfc4ce commit fc25c39

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

‎NICOLAS.md‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ Offers and Locations are linked to Brand through brandId, all brandId fields are
154154
<br>
155155

156156
3. What are the pros and cons of Dynamodb for an API request?
157-
**Answer:** Cons: I thought the forms that queries are made is a little limited, it’s harder to perform queries if medium-high complexity; You have a limit of capacity write/read, that is defined on `ProvisionedThroughput` (in serverlerss.yml file), and even defining it to 'auto', it's not very predictable how much you can will for it.
157+
**Answer:** Cons: I thought the forms that queries are made is a little limited, it’s harder to perform queries with medium-high complexity; You have a limit of capacity write/read, that is defined on `ProvisionedThroughput` (in serverlerss.yml file), and even defining it to 'auto', it's not very predictable how much you will pay for it.
158158
Pros: It’s very easy to install, configure; It’s a flexible database; The SDK integration is very good and easy to perform;
159159

160160
---
@@ -179,4 +179,10 @@ Bonus implementation is available on the follow endpoint:
179179
POST - https://6pkqjlxvu0.execute-api.us-east-1.amazonaws.com/dev/offer/{offerId}/link-all-brands-location/{brandId}
180180
```
181181

182-
It notify the user at response when some of the links could not be performed.
182+
It notify the user at response when some of the links could not be performed.
183+
184+
---
185+
##### What i done differently if it was meant to be a production project
186+
- The application is currently set to work with **`Provisioned Throughput`** Read/Write Capacity at once, it could be increased to meet the demand, to not limit if reached an assumed max capacity limit, that would bring a better flow rate for many requests.
187+
- Its possible to add a **socket** implementation to notify the user before the request is completed at the huge request (Bonus task: 10000 locations assignments at one request), to not stuck the user while the request is not completed, then through socket, would be possible do send events of feedback for example, for each 100 locations that are linked, user will get a notion about the request progress.
188+
- The test API is very simplified, user doesn't have much options to custom it's problem solution. Adding more resources will bring an better experience for them (Justl like the FidelAPI Offer today).

0 commit comments

Comments
 (0)