ministryofjustice / cloud-platform

Documentation on the MoJ cloud platform
MIT License
87 stars 44 forks source link

consider using AWS Controllers for Kubernetes for deploying serverless. #4081

Closed williamfalconeruk closed 7 months ago

williamfalconeruk commented 2 years ago

Service name

HAAr Team (HMPPS Auth) - email domain validation (to be developed)

Service environment

Impact on the service

This has currently no impact on the service, but the team would like us to consider whether we could incorporate serverless technology into the cloud platform.

Problem description

We are looking for an easier way to leverage serverless (FaaS) since this would give us benefits of clean small code footprint and a cheaper run on resources.

I came across this article which describes a potential approach to supporting this from the K8s cluster. I think it could have some potential to allow leverage of cloud native approaches for our architecture. I appreciate that this has been tried with other technologies.

I'm sure there could be some constraints put around auth, logging and instrumentation that could be incorporated into any proof of concept, and would give you another offering other than a container based pod approach. AWS does also offer the availability of using container based functions, if needed.

I look forward to your response :)

Contact person

@wiliamfalconeruk @brightonsbox

poornima-krishnasamy commented 7 months ago

Please find the ADR for use of serverless in Cloud Platform here: https://github.com/ministryofjustice/cloud-platform/blob/main/architecture-decision-record/037-serverless.md.

This doesnt mean we wouldnt look at in in the future. I have created a firebreak/spike ticket for us to revisit ACK and see if that would benefit the users: https://github.com/ministryofjustice/cloud-platform/issues/5324