Implement FaaS function which posts user into the API
Description
Implement the FaaS function which reads the received event, and POSTS this data to the API via the endpoint created in api#27 (closed)
Further details
This FaaS function does not need to define any of its own interfaces, as it depends on the interfaces already defined in the account-selector and the API.
Events could be either create, update or delete events.
Errors from the API should ensure the event is not acked from the queue. And error message printed to logs, but the FaaS module should retry a suitable number of times to contact the API (with a backoff).
As part of this task we should investigate how the PubSub subscriber can communicate errors back to the queue, implement and get feedback collaboratively from other members of the team as part of this task.
Task list
Acceptance criteria
-
When user events are pushed to the topic the FaaS module sends them on to the database -
Error conditions not immediately handled should be raised as separate issues