Code Monkey home page Code Monkey logo

cycle-node-http-server's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

cycle-node-http-server's Issues

Feature Request Ideas (3 1/2)

This has the potential of being a game-changing architecture!

Consider adding ws: and wss: WebSocket support through id: (integrating ws).

Consider adding session support, again, probably made trackable in the main() logic via an id(-like) property. Lightweight state (e.g. through an ES6 Map) seems a necessity; but that's what sessions are - server state containers.

Consider studying akka streams ("low-level") HTTP scala dsl for a full-service server-side streaming architecture. However, an important distinction is your streams stay flat. This is a nice feature that simplifies things (and node should keep things simple). Nonetheless, right now your main xs.merge is not type-safe (cf. the session-management suggestion above). Consider, separate, type-safe streams (server$, session$, response$; so the library comprises a triple/whatever of drivers), where main() is the stream track-switching logic for messages (follows xstream architecture).

Long term: Consider a future architectural requirement against xsteam to handle node.stream back-pressure @staltz . This narrows the possible requirements on xstream's future to a very practical and important use (node). Of course a more general backpressure architecture that could entail node.stream is fine (e.g. reactive-streams and the easy interface spec - also conceived of for javascript).

This could change the face of node server programming. - Just important to keep it a simple architecture (like you+cycle have it)!

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.