Git Product home page Git Product logo

akka-pg's Introduction

Akka PostgreSQL

TODO / REF:

  • Better Connection Handling
  • Restart Flow (Akka 2.5.4)
  • correct Backpressure, currently it will fail with an overflow, however the correct implementation would backpressure/drop upstream (and or throttle)
  • Java API
  • Tests
  • More complete API, i.e. Prepared Statements (and their return), Statements with Return, Transactions
  • Query DSL

IO Monad: https://github.com/getquill/quill/commit/cee378c19f981fce9e74b079cb700d92dcd6c786

Description

Everything here is likely to change and won't be MiMa compatible in any way!!!

Actually this is a PostgreSQL client built with akka-stream and is fully non-blocking, i.e. everything will return a Future.

The basic implementation is as follow:

Broadcast Hub ~> dynamic Connection ~> Merge Hub

Which means that any client could attach itself to the "output stream" i.e. can log any message that the server will send or can actually create multiple sources to the client.

Motivation

The basic idea is to use PostgreSQL as a PubSub implementation. Currently we don't want to add another server like redis to do it, just for PubSub or recreate or HA solution based on redis, that's why we implemented this.

Reference Implementation of Parsers:

Reference: https://github.com/mauricio/postgresql-async

Command Complections

if we issue any command we will always get a ReadyForQuery which will indicate that we are now ready to process the next query.

akka-pg's People

Contributors

schmitch avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

akka-pg'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.