AIS service discovery package for python3
Project description
ais-service-discovery-python
Cloud Application Framework
## Description
This repository interfaces Serice Discovery, in this instance CloudMap, in order to locate and communicate with different services. As opposed to storing ARN's in environment variables, this library will interface CloudMap to find a service by a user friendly naming convention, and will understand what 'type' of service you've requested, and use the correct code to communicate/call that service.
Services supported
- Lambda (
call
).
TODO
- Lambda (
request
) - SNS (
publish
). // subscribe not supported by SNS. - SQS (
queue
|listen
), - Http (
request
|call
). - Fargate/ECS Task (
run
).
Note:
This library requires Python 3.5 and above.
Examples:
Lambda Call
from ais_service_discovery import call
response=call('namespcae', 'service', 'handler', {<Payload>})
print(response)
Lambda Async Call
from ais_service_discovery import call
response=call('namespcae', 'service', 'handler', {<Payload>}, {'InvocationType': 'Event'})
print(response)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for ais_service_discovery-0.0.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9bbab562080364dbda36f7f4e6eeb1ee9cffbc73062452eaa1c4e7ef63233b70 |
|
MD5 | 9d5d9070d2f862d71ee00583aa5bedc6 |
|
BLAKE2b-256 | 551c4fddc11de442faaf3dc59bf5be0d7d6f8ef61e98f9a564022ffc83c31530 |
Close
Hashes for ais_service_discovery-0.0.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9b6c1fc6fc6c2b3e5e5279de2c872c7d272f4678de102ee7d105e543659d35a5 |
|
MD5 | 5f4eed307fc6f28ffbec6265e6af5039 |
|
BLAKE2b-256 | b601fbf49cd0b6c799c7a114633556850753e071813cd65cd617f6cea89f4b05 |