Developed a custom API integrated with AWS Lambda and a Dockerized local server to generate celestial maps in SVG format for a jewelry business. The API facilitated the creation of custom celestial maps based on user-specified attributes (e.g., date, location, time) and returned an SVG output used for engraving celestial patterns on jewelry pieces. The system leveraged AWS Lambda to trigger the map generation process and handle external requests seamlessly.
What I delivered:
- AWS Lambda for Celestial Map Generation:
- Custom Docker Image for Celestial Maps:
- API Integration and Communication:
- Custom Celestial Map Attributes:
- SVG Output for Jewelry Engraving:
Result: Production-tested tool, documented install, and revisions until the client workflow was stable.
Overview
Developed a custom API integrated with AWS Lambda and a Dockerized local server to generate celestial maps in SVG format for a jewelry business. The API facilitated the creation of custom celestial maps based on user-specified attributes (e.g., date, location, time) and returned an SVG output used for engraving celestial patterns on jewelry pieces. The system leveraged AWS Lambda to trigger the map generation process and handle external requests seamlessly.
Key Features & Responsibilities:
- AWS Lambda for Celestial Map Generation:
- Implemented a Lambda function to process external API requests and interface with the Dockerized celestial map generator.
- The Lambda function received input parameters (e.g., date, time, location) and invoked the Dockerized service to generate celestial maps.
- Integrated with AWS API Gateway to securely route requests to the Lambda function, ensuring efficient communication between external servers and the local map generation process.
- Custom Docker Image for Celestial Maps:
- Created a custom Docker image that encapsulated the celestial map generation tool, including dependencies for rendering SVG files.
- Deployed the Docker container on a local server, and used the Lambda function to remotely trigger map generation.
- The Dockerized service handled celestial calculations and SVG rendering, producing high-quality, scalable maps suitable for engraving.
- API Integration and Communication:
- Built a REST API using AWS API Gateway to enable external applications to submit custom requests for celestial maps.
- Ensured smooth communication between the API, Lambda function, and Dockerized map generator, allowing real-time responses based on user inputs.
- Employed secure authentication mechanisms to manage API access and validate requests.
- Custom Celestial Map Attributes:
- Provided customization options to generate maps that reflected specific star constellations, planetary positions, and celestial coordinates based on the given location and time.
- Users could select map styles, sizes, and features such as constellation visibility or line thickness, ensuring the SVG output matched their engraving needs.
- SVG Output for Jewelry Engraving:
- Generated high-quality SVG files for engraving purposes. These files were scalable and retained precise details required for jewelry manufacturing.
- Optimized the SVG format to ensure compatibility with engraving machinery, allowing intricate celestial patterns to be transferred onto jewelry pieces with accuracy.
- Error Handling and Logging:
- Implemented comprehensive error-handling mechanisms within the Lambda function and Docker service to manage incorrect input data, connectivity issues, and processing errors.
- Utilized AWS CloudWatch to monitor logs and track the performance of the Lambda function, ensuring smooth operation.
Technologies & Tools:
- AWS Lambda: Handled serverless execution for processing requests and invoking the map generation tool.
- Docker: Packaged the celestial map generator in a Docker container to run on a local server, providing a controlled environment for the map generation process.
- AWS API Gateway: Managed external API requests and securely routed them to the Lambda function.
- Python: Developed the celestial map generator using Python, including celestial calculations and rendering in SVG format.
- SVG Rendering: Produced scalable SVG maps optimized for engraving on jewelry.
- AWS CloudWatch: Used for monitoring Lambda function execution and logging errors for troubleshooting.
Skills Applied:
- AWS Integration: Developed and deployed a serverless solution using AWS Lambda and API Gateway, enabling efficient, real-time celestial map generation.
- Dockerization: Encapsulated the celestial map generation process in a Docker container to ensure consistent and reliable execution across environments.
- Celestial Calculations: Applied astronomical formulas to calculate star constellations, planetary positions, and other celestial phenomena based on user inputs.
- SVG Customization: Generated SVG files that were suitable for engraving, offering high customization based on user specifications.
- Error Monitoring: Integrated robust logging and error-handling to ensure a smooth, reliable service.
