This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Diagram: | |
DefinitionFiles: | |
- Type: URL | |
Url: "https://raw.githubusercontent.com/awslabs/diagram-as-code/main/definitions/definition-for-aws-icons-light.yaml" | |
Resources: | |
Canvas: | |
Type: AWS::Diagram::Canvas | |
Direction: vertical | |
Children: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// pseudocode implementation of PostgresConnection class | |
Class PostgresConnection: | |
// properties | |
asyncQueryQueue = [] // queue of queries to execute asynchronously | |
pendingAsyncQueriesBucket = [] // bucket of queries currently being processed | |
Constructor: | |
// initialize database connection | |
syncConnection = postgresConnections[syncConnectionHash]; // handles synchronous database queries | |
asyncConnection = postgresConnections[asyncConnectionHash]; // handles asynchronous database queries |