Giter Site home page Giter Site logo

passadis / containerapps-api-redis Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 406 KB

Azure Container Apps: APIs, Redis Cache and Microservices with OpenAI Chat Completions

Home Page: https://www.cloudblogger.eu/2023/12/30/azure-container-apps-apis-redis-cache-and-microservices-with-openai-chat-completions/

License: MIT License

Dockerfile 16.14% Python 45.56% CSS 14.28% HTML 24.02%
azure azurecontainerapps flask openai python redis-cache

containerapps-api-redis's Introduction

Building Containerized Applications with Azure Container Apps and utilize OpenAI API

Introduction

Today's focus is on Azure Container Apps and the OpenAI API, illustrating how to build containerized applications and APIs without the need for Docker. This guide is designed for developers looking to leverage the latest in container technology and AI integrations.

The Evolution of Technology and Containers

The landscape of technology is rapidly evolving, introducing amazing features and applications almost daily. Containers have become the new standard for building and deploying applications due to their flexibility, control, security, and a variety of hosting options. Typically, Docker is used to create Dockerfiles, configure images, and manage the deployment of these containers to platforms like Kubernetes or Container Registries. However, Azure Container Apps now allows us to bypass Docker, enabling the building and pushing of containers directly to Azure Container Registry and subsequently to Azure Container Apps' managed environment. This simplifies the app deployment lifecycle significantly.

Architecture of Our Workshop

Our workshop showcases an architecture involving:

  • A Python Flask Web App as the frontend.
  • A Python-based container image as the backend API endpoint.

The frontend allows users to select a city from a drop-down menu and receive information and photos of that city. The backend service fetches photographs stored in a Storage Account and uses the OpenAI Chat Completions API to retrieve general information about the selected city. This setup can be extended into a full-fledged tourist or travel web application, complete with security, scalability, redundancy, and flexibility.

Building the Application

We'll use Azure CLI for a straightforward approach to building our resources:

  1. Create a Storage Account: Begin by setting up a Storage Account and adding a container with photos of various cities (e.g., Athens.jpg, Berlin.jpg, Rome.jpg).
  2. Follow the Blog for Detailed Instructions: For step-by-step guidance, visit Azure Container Apps, APIs, Redis Cache, and Microservices with OpenAI Chat Completions.

This approach offers an integrated solution for enterprise-scale applications, ready for production with features like Azure Redis Cache for enhanced performance.

Contribute

We encourage contributions! If you have ideas on how to improve this application or want to report a bug, please feel free to open an issue or submit a pull request.

Architecture

api-1a

containerapps-api-redis's People

Contributors

dependabot[bot] avatar passadis avatar

Watchers

 avatar  avatar

containerapps-api-redis's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.