Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
    Ohm Trivedi
    Will the URL be different in case of Connect?
    Khánh Trần
    hi @rjrodger, could you check if seneca-meshis supported meta$?
    I also try this fixed but still can not received meta$
    Khánh Trần
    @MiYogurt https://github.com/rualatngua/seneca-mesh-kubernetes here is my sample code for seneca-mesh
    we're using seneca-mesh on some production now
    not a busy system but it works
    @rjrodger about meta$ info, I found that in transport-util Wrek.post don't send meta$/custom object
    the meta.test.js is pass but failed for HTTP transport
    I think missing meta$ things like Open Tracing can not work
    Khánh Trần
    Is there any transport plugin where you can just supply a list of urls (am using NSD to keep the list current) and then whenever you act the msg just gets sent to the list with a Promise.all if it's an observe$ or a Promise.first if it's consume...I seem to remember seeing something similar in the code at the beginner or the year
    Khánh Trần
    @fluidnotions might be seneca-mesh (this plugin go with seneca-balance-client plugin)
    Jet Rico
    hi there, i recently submitted an issue on github, and for us his is a critical thing as we are using something in production that broke in a recent publish senecajs/seneca#733
    can someone help us? thanks
    Khánh Trần
    @dragonjet here is my quick fix rualatngua/seneca@7576b74
    but I can't create PR because Travis build failed
    @dragonjet this bug has been fixed 2 days ago
    Martin Mueller
    hey guys, I am having an issue with my microservice. The following error-message is showing up: {"kind":"fatal","level":"fatal","plugin":"seneca","tag":"3.8.0","id":"73pd8bskulzk/1547564510819/1/3.8.0/-","code":"bad_plugin_tag","notice":"seneca: The plugin tag string, if defined, must be alphanumeric (matching /^[a-zA-Z0-9_]+$/), and cannot be longer than 1024 characters. Name was '[name?]', and tag was '2.2.0‘.“. I dont know what „plugin tag string“ it is talking about. I am using seneca@3.7.0 and the seneca-amqp-transport@2.1.0 plugin
    Martin Mueller
    is this the same issue as above?
    Martin Mueller
    Looks like it is because the PLUGIN_TAG for the amp-transport is 2.0.0 and you guys changed it so no .s are allowed anymore.
    Martin Mueller
    There might be a fix for that: senecajs/seneca-amqp-transport#130
    can someone guide me? I'm trying to setup like an API gateway. How can I define the routes in the plugin and have the api gateway redirect to the micro services?
    Should the api gateway not use sencia web and just proxy to the micro services?
    hi, is there any documentation for legacy function such as loghandler?
    Khánh Trần
    Should the api gateway not use sencia web and just proxy to the micro services?
    You can use Hapi with a good plugin for seneca.
    I mostly use ExpressJS or Fastify as API gateway, I add a seneca-client to forward requests to downstream services.
    I am a newbie and I am very upset now. Please pay attention to my Issue post at senecajs/seneca-store-test#47.
    Thank you.
    Tommi Vainikainen
    What tracing systems have you used with senecajs to have traces for interaction between microservices?
    I am new in NodeJS and i am using seneca version 3.4.3 with seneca-amqp-transport and rabbitMQ as a broker (not sure if terminology is correct).
    I noticed that if you have a seneca listener script (RPC) connect to rabbitMQ, and somehow kill the rabbitMQ, the listener dies as well. My question is how do you track the "dying" part of the listener script? I noticed it emits a 'kill' signal that can be capture via process.on('kill', () => {}), but i want to capture it on the seneca level - something like seneca.on('disconnect', () => {}) kinda thing.
    Mike Lindenau
    This is super raw but would love any feedback. https://github.com/nscale/usrv
    Julien Perrenoud

    Hey everyone!

    I am a new Seneca user trying to use Seneca as part of my fairly simple Express/MongoDB setup. More specifically, I am trying to make my models use seneca-entity backed by seneca-mongo-store. This works great, but I cannot find a good way to implement some kind of schema validation.

    In a previous project, I used Mongoose to create schemas which would automatically validate the data upon creation/update. I would like a similar thing here but I could not find good documentation about mongoose/seneca integration online and it feels like Mongoose would be fairly redundant here, or at least a bit clunky to integrate. I feel like there's got to be a better way.

    Am I doing this wrong? How are you guys validating your mongodb data with seneca entities?

    Thank you all in the community for building this project!

    Hi @jfperren I'm not an expert either but at my company we work with Seneca and if you want to add some schema validation, take a look at https://github.com/senecajs/seneca-joi it would give you validation schemas against your pines, you can always check what you send in the pin with the schema
    Hi guys, I would like to make some kind of health check service validation through http, this is due to at my company devops need some kind of endpoint to check if the service is available, I've been looking through zipking but I haven't found any way to check the current services through its API (it seems the /service endpoints only returns all the services which are or have been in zipking) The idea I have in my mind is to add a health check ping by service and call it through an API connected to Seneca, I would like to know your opinions or some tools or modules which could help us.
    Thanks a lot and any idea idea would be appreciate
    Julien Perrenoud
    @Paker30 Awesome, this is exactly what I was looking for. Thanks a lot!
    Juan Antelo-Justiniano
    Hello. Is it possible to persist memory between endpoint calls?
    For me, this seems like the only limitation of a serverless framework but i wonder if there is a workaround / solution
    Josh Reeter
    @JuanAntelo you could use something like Redis to persist state to "between endpoint calls"
    Shyam Pratap Singh
    Hi Team, I am using seneca-mesh for auto service discovery. Could you please let me know how to make this microservices distributed in the sense that, one serviceA is running in VM1(virtual machine) and another serviceB is running in VM2 and i am calling microservice from VM3, using seneca.act(Pattern) for serviceA
    currently i have done this setup in single VM and services are getting discoverable, but i want to make it distributed. It would be a great help
    If I have one service exposing a web api using seneca-web, how can that service discover the other services if it's not part of the mesh network the remaining services are on? Does the web api service also participate in the mesh?
    cool thx
    Benson Lin

    hi , i am just try to custom my logger and check this tutorials/logging-with-seneca

    but got this error

    {level: 'all', handler: seneca.loghandler.file('shop.log')}

    TypeError: Cannot read property 'file' of undefined
    at Object.<anonymous> (D:\code\seneca-log-test\sales-tax-log-handler.js:8:49)
    at Module._compile (module.js:653:30)
    at Object.Module._extensions..js (module.js:664:10)
    at Module.load (module.js:566:32)
    at tryModuleLoad (module.js:506:12)
    at Function.Module._load (module.js:498:3)
    at Function.Module.runMain (module.js:694:10)
    at startup (bootstrap_node.js:204:16)

    at bootstrap_node.js:625:3

    any sugguestion?

    José da Mata
    hi guys, I've a general question about concurrent service operation calls
    does Seneca handles concurrent requests from clients
    I'm defining a few modules that will listen requests from clients, and one of those generates PDF using a puppeteer integration
    I'm not sure how much load this operation will have to handle in the future, but I'm worried if seneca will be able to this with a TCP transport (no queuing) on a "default" settings basis