Giter VIP home page Giter VIP logo

explore-openresty's Introduction

Exploring Lua and Nginx

This is a series of examples that explore Lua + Nginx via Openresty.

The goal is to demonstrate a basic webapp that processes JSON POSTs over HTTP via a message queue and data processing sink, eventually storing those messages in a Postgres database.

See dev-notes.md for the juicy details that steps through each of the examples.

Examples

After drawing up a basic design to implement for the demo, I wrote out a list of topics that I would need to sort out as a Lua/Openresty newb.

These exercises encompass:

  • 01-hello-world-html
  • 02-hello-world-json
  • 03-echo-post-json
  • 04-write-to-postgres
  • 05-dynamic-db-connection-info
  • 06-connect-to-redis
  • 07-redis-data-sink
  • 08-limit-http-methods
  • 09-batch-read-from-postgres
  • 10-basic-http-client
  • 11-batch-submit-posts
  • stand-alone-lua-image

The Demo

See demo/README.md for more details on running the POST processing, message queue demo.

explore-openresty's People

Contributors

ketzacoatl avatar

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.