Flask Change Microservice

screenshot of Flask Change Microservice
flask

Small Flask Microservice that makes the change

Overview

Flask Change Microservice is a compact and efficient tool designed to facilitate the process of making change using a simple Flask application. With the convenience of a microservice architecture, it provides an easy-to-use interface for users and developers alike. This solution is particularly useful for financial applications or any scenario where calculating change is essential, allowing for quick and seamless changes between different denominations of currency.

The microservice can be deployed easily and is accessible through various methods, making it versatile for various use cases. Whether you prefer using command-line tools like cURL or graphical interfaces like Postman, this service stands ready to deliver results efficiently.

Features

  • Simple Setup: Quickly get started by creating a virtual environment and a straightforward installation process using Makefile commands.

  • API Endpoint: Access the service through a RESTful API endpoint, enabling easy integration with other applications.

  • Multiple Invocation Methods: Use different tools such as cURL, Postman, or HTTPie to invoke requests, catering to different preferences and environments.

  • Python Requests Library: For developers familiar with Python, easily make requests with a simple one-liner script utilizing the requests library.

  • Change Calculation: The microservice efficiently calculates change for various denominations, returning results in JSON format for easy parsing and integration.

  • Load Testing Capability: Optionally, perform load testing with Locust to simulate user traffic and evaluate performance under pressure.

  • Documentation Available: Comprehensive documentation is provided for all functionalities and methods, ensuring that users can quickly find the information they need.

flask
Flask

Flask is a lightweight and popular web framework for Python, known for its simplicity and flexibility. It is widely used to build web applications, providing a minimalistic approach to web development with features like routing, templates, and support for extensions.