Coder Social home page Coder Social logo

ayanami's People

Contributors

gofrendiasgard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

ayanami's Issues

Implement trig.response.in.header (breaking changes)

Is your feature request related to a problem? Please describe.
Currently there is no way to set custom header and cookies for response

Describe the solution you'd like
Gateway should also listen to <ID>.trig.response.in.header

Use new mechanism to publish/subscribe

Is your feature request related to a problem? Please describe.
This issue is related to #2 .
Instead of implementing <ID>.trig.response.header, we can change the publish & subscribe mechanism instead.

Describe the solution you'd like

  • implement PublishRecursively(ID, rawEventName string, data interface{}) error. When publish a data, we should also see, whether the data has subValues or not, and publish subEvent recursively. One possible solution (for map) is provided here: https://play.golang.org/p/BgIu6bfW4ov. Beside map, we should also handle slices: https://play.golang.org/p/7OkRT-SgeGt.

  • When service is ready to publish, make check all output event. Is there any common parent event or not. Also, is our event is parent event, or it still have ancestors. For example if we publish: trig.response.in.code and trig.response.in.content, we should also publish trig.response.in. The published data of the last event should be a map, containing code and content.

Split this repo into two repositories: service + generator

Is your feature request related to a problem? Please describe.
This repo could be intimidating. Some people might just want to know about the service or the generator, not both

Describe the solution you'd like
Keep this repo for the generator, make another repository ayanami-service-go

Describe alternatives you've considered
none

Additional context
none

Implement "unsubscribe" in msgbroker.CommonBroker

Is your feature request related to a problem? Please describe.
Gateway and flows actually only need to subscribe into ID based event until a response is generated (e.g: <ID>.trig.response.in.code or <ID>.srvc.<service>.out.<var>). Once the response has been generated, gateway and flows doesn't need to listen to these events anymore.

Having a lot of subscriber could have a performance drawback sometime.

Describe the solution you'd like
There should be a way to unsubscribe from a particular event. Define Unsubscribe in Common broker interface and make our brokers comply the interface

memory broker is not complying nats broker

Describe the bug
While nats supporting > and * anywhere, memory broker only support * as the first segment

To Reproduce
Simply create a subscriber in memory broker containing the characters.

Expected behavior
It should behave like nats

Use `addEntity` instead of `addConfig` for generator

Is your feature request related to a problem? Please describe.
Config is not clear enough. Entity is a better term

Describe the solution you'd like
Use entity instead of config

Describe alternatives you've considered
none

Additional context
none

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.