Upgrade to Pro — share decks privately, control downloads, hide ads and more …

GoUAE Nov 2024 - A Go developer's guide to buil...

GoUAE Nov 2024 - A Go developer's guide to building on AWS

Mohammed Fazalullah

November 03, 2024
Tweet

More Decks by Mohammed Fazalullah

Other Decks in Technology

Transcript

  1. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. A Go developer's guide to building on AWS Mohammed Fazalullah “Faz” Senior Developer Advocate Amazon Web Services
  2. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Go developers/enthusiasts….. ??
  3. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. In simpler times… Proprietary software systems LAMP Reference books, CHMs
  4. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Go on AWS - Common questions Does AWS support Go? Is it just about the “AWS Go SDK”? Where can I deploy my Go applications on AWS? What about Serverless development? Can I build Generative AI solutions on AWS with Go? Which database should I choose for my Go apps? AWS tooling for Go developers? …
  5. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Hello, Go! https://go.dev/
  6. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS Go SDK https://aws.github.io/aws-sdk-go-v2/docs/
  7. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. I want to deploy Go apps on AWS - Where do I start?
  8. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Deploy Go apps on AWS Amazon EC2 Amazon EKS AWS Fargate Amazon ECS AWS App Runner VMs Containers Hybrid
  9. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS App Runner F U L L Y M A N A G E D S E R V I C E F O R W E B A P P L I C A T I O N S AWS App Runner Serverless Platform provides a highly abstracted and simple managed experience for running web applications and API hosting services Supported language runtimes
  10. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Flexible builds and deployments for Go apps Source code repository Build container with existing tooling Push container image to ECR Development Teams Build application with App Runner Deploy application or Secure Service URL Clients HTTP Requests Configuration
  11. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Which AWS database can I choose?
  12. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Purpose-built databases MemoryDB
  13. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Go support for databases on AWS • Amazon DynamoDB, Timestream, Neptune – Supported by AWS Go SDK • Amazon Elasticache, MemoryDB for Redis – https://github.com/redis/go-redis • Amazon RDS, Aurora – jack/pgx, go-sql-driver/mysql • Amazon DocumentDB – mongo-go-driver, example • Amazon Keyspaces – gocql, IAM authentication plugin
  14. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. What about Serverless apps with Go?
  15. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS Lambda https://docs.aws.amazon.com/lambda/latest/dg/lambda- golang.html
  16. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. AWS Lambda Runtimes 23 go1.x provided.al2 recommended Migrating AWS Lambda functions from the Go1.x runtime to the custom runtime on Amazon Linux 2
  17. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Packaging – Docker container image C H O O S E T H E A P P R O P R I A T E B A S E I M A G E 24 provided.al2 base image Custom (non AWS) base image
  18. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Go for AI/ML? Yes, please!
  19. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Generative AI Stack GPUs Inferentia Trainium SageMaker EC2 Capacity Blocks Neuron UltraClusters EFA Nitro Amazon Bedrock Guardrails Agents Customization Custom Model Import Studio Amazon Q AWS App Studio Amazon Models
  20. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Choice of leading FMs through a single API Model customization Retrieval Augmented Generation (RAG) Agents that execute multistep tasks Security, privacy, and data governance The easiest way to build and scale generative AI applications with powerful tools foundation models
  21. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Amazon Bedrock B R O A D C H O I C E O F M O D E L S Text summarization, generation, Q&A, search, image generation Amazon Titan Text Premier Amazon Titan Text Lite Amazon Titan Text Express Amazon Titan Text Embeddings Amazon Titan Text Embeddings V2 Amazon Titan Multimodal Embeddings Amazon Titan Image Generator Summarization, complex reasoning, writing, coding Claude 3.5 Sonnet Claude 3 Opus Claude 3 Sonnet Claude 3 Haiku Claude 2.1 Claude 2 Claude Instant Text generation, search, classification Command Command Light Embed English Embed Multilingual Command R+ Command R Q&A and reading comprehension Llama 3.2 Llama 3.1 Llama 3 8B Llama 3 70B Llama 2 13B Llama 2 70B Mistral Large 2 (24.07) Mistral Large (24.02) Mistral Small Mixtral 8x7B Mistral 7B Text summarization, text classification, text completion, code generation, Q&A High-quality images and art Stable Image Ultra Stable Diffusion 3 Large Stable Image Core Stable Diffusion XL1.0 Stable Diffusion XL 0.8 Contextual answers, summarization, paraphrasing Jamba 1.5 Large Jamba 1.5 Mini Jamba-Instruct Jurassic-2 Ultra Jurassic-2 Mid
  22. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. How it works * Your data is not used for service improvements and is not shared with third-party model providers. The easiest way to build and scale generative AI applications with FMs Amazon Bedrock Choose from leading FMs Customize with your data* Connect data sources Enable task execution Access a range of top FMs using a single API Privately fine-tune FMs with your data Connect FMs with your data sources for RAG Configure agents to dynamically invoke APIs 30
  23. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Build GenAI apps using Bedrock and Go bedrock and bedrockruntime
  24. © 2023, Amazon Web Services, Inc. or its affiliates. All

    rights reserved. Thank you! © 2023, Amazon Web Services, Inc. or its affiliates. All rights reserved. Please complete the session survey in the mobile app