Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

Basic implementation of an AWS SAM service in Go producing weather events

NotificationsYou must be signed in to change notification settings

sv3ndk/weather_api_demo_go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Status

  • REST integration:

    • aREST API exposed via the API Gateway allows to query weather events.
    • aCLI client app queries this REST endpoint
    • API keys are configured to limit traffic (usage/quotas)
    • authentication is based on mutual TLS
  • websocket integration:

    • a websocket endpoint is exposed on the API Gateway
    • theon-connect lambda keeps track of the currently connected websocket clients
    • thews-push lambda is notified when events are added to DynamoDB and forwards them to all currently connected websocket clients
    • aCLI websocket client streams weather events from the websocket endpoint and prints them
  • both the REST and websocket endpoints are exposed on a custom DNS domain

  • adata generator lambda, triggered every minute, adds random weather events to DynamoDB

TODO (maybe)

  • handle SIGINT correcty in ws socket client
  • add Webocket security: API key? Or first request a temp token through REST, then pass it in theconnect ws phase
  • add OpenAPI spec to REST endpoint

References

Go AWS SDK

Go DynamoDB SDK

Security

About

Basic implementation of an AWS SAM service in Go producing weather events

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

[8]ページ先頭

©2009-2025 Movatter.jp