Visão Geral
O curso Construindo APIs RESTful com Google Cloud Functions apresenta aos participantes o desenvolvimento de APIs em arquitetura serverless utilizando o Google Cloud Functions (GCF) — um serviço totalmente gerenciado e orientado a eventos.
Durante o curso, os alunos aprenderão a projetar, criar e implantar APIs RESTful escaláveis, que respondem a eventos HTTP sem a necessidade de gerenciar servidores. Serão abordadas integrações com outros serviços do Google Cloud, autenticação, monitoramento, versionamento e implantação de APIs em ambientes reais.
Com uma abordagem prática, o curso combina teoria e laboratório para capacitar o aluno a construir APIs leves, econômicas e prontas para produção.
Conteúdo Programatico
Module 1 – Introduction to Google Cloud Functions
- Understanding the serverless model and FaaS (Function as a Service)
- Key features and benefits of Cloud Functions
- Cloud Functions vs Cloud Run vs App Engine
- Setting up the Google Cloud environment
- Installing and configuring
gcloud CLI
Module 2 – Creating and Deploying Your First Function
- Writing a simple HTTP-triggered function
- Deploying functions using the Cloud Console and
gcloud CLI
- Handling requests and responses in Node.js/Python
- Understanding function entry points and runtime environments
Module 3 – Designing RESTful APIs with Cloud Functions
- REST architecture and best practices
- Structuring routes and endpoints
- Handling path and query parameters
- Implementing CRUD operations (Create, Read, Update, Delete)
- Returning structured JSON responses
Module 4 – Integrating with Google Cloud Services
- Connecting APIs with Cloud Firestore and Cloud Storage
- Using Pub/Sub for asynchronous processing
- Invoking other Cloud Functions via HTTP calls
- Integrating with Cloud SQL databases
- Working with environment variables and configurations
Module 5 – Authentication and Security
- Implementing API keys and OAuth 2.0 authentication
- Securing APIs with Firebase Authentication
- Managing permissions with IAM roles and service accounts
- Applying rate limiting and CORS policies
- Handling secure secrets with Secret Manager
Module 6 – Monitoring, Logging, and Troubleshooting
- Logging best practices with Cloud Logging
- Monitoring API usage with Cloud Monitoring
- Debugging errors and performance bottlenecks
- Using Cloud Trace and Error Reporting for insights
Module 7 – Deploying and Managing Production APIs
- Versioning and updating Cloud Functions
- Automating deployments with Cloud Build and CI/CD pipelines
- Managing configuration for multiple environments (dev/stage/prod)
- Scaling serverless APIs automatically
- Best practices for cost management and optimization
Module 8 – Advanced Topics and Real-World Use Cases
- Building multi-function API architectures
- Integrating Cloud Endpoints or API Gateway with Cloud Functions
- Using custom domains and HTTPS
- Implementing GraphQL endpoints with Cloud Functions
- Real-world project: Deploying a complete REST API on GCP