Questions tagged [seneca]

Seneca is a microservices toolkit for Node.js. It helps you write clean, organized code that you can scale and deploy at any time.

Seneca is a microservices toolkit for Node.js. It provides plugins that look after the foundations of your app. This leaves you free to focus on the real, business code. No need to worry about which database to use, how to structure your components, or how to manage dependencies. Just start coding.

You write everything as a command. Your commands get called whenever they match a set of properties. Your calling code doesn't know, or care, which command gets the work done. One JavaScript object goes in, and another comes out, asynchronously.

senecajs

50 questions
0
votes
1 answer

How to call Senecajs action from .Net using Rabbitmq

I have a microservices system using RabbitMq as Message Broker, I want to talk with them from .Net. Thanks!
0
votes
1 answer

Seneca-mesh CL MISSING

Anyone have experinace with seneca? I have problem when I try to inclue mesh... This is hapi route: server.route({ method: 'GET', path: '/api/ping', handler: function (req, reply) { server.seneca// load the mesh…
Vladimir
  • 1,751
  • 6
  • 30
  • 52
0
votes
1 answer

Implementing fanout strategy using senecajs

I am developing a node.js social networking application using senecajs and need to implement a scenario where a producer can send the same message to multiple consumers. I found an article that seems to illustrate sample code for pulling this off…
user1790300
  • 2,143
  • 10
  • 54
  • 123
0
votes
1 answer

Microservices in Nodejs?

I'm trying to develop a microservice in Node.js. I wish to develop a microservice for authentication using jsonwebtokens. I'm trying to make it using SenecaJS. Shall I use any other framework/tool? What should be my approach? Unable to find proper…
Aman Dwivedi
  • 174
  • 1
  • 10
0
votes
1 answer

ExpressJS Redirect to Get Function Once Finished

I'd like to find a way to not repeat myself. Most of my /post/ commands should update something then display the same contents as the /get/ command. At present I am repeating myself like: .get(function(req, res) { act({ role: 'earnings', …
Jack Robson
  • 2,184
  • 4
  • 27
  • 50
0
votes
1 answer

Simple Seneca Promises Example

I am trying to use Bluebird with Seneca in order to promisfy all my seneca modules that I create. I'd love to be able to chain seneca commands. Here is a transaction module which to make things as simple as possible, only has one task, to create a…
Jack Robson
  • 2,184
  • 4
  • 27
  • 50
0
votes
1 answer

Senecajs | app esponded with result that was not an object or array: Promise

Trying to integrate promises into my seneca modules. Firstly, we have the server.js file which exposes a route: var express = require('express'); var app = express(); var Promise = require('bluebird'); var seneca = require('seneca')(); var act =…
Jack Robson
  • 2,184
  • 4
  • 27
  • 50
0
votes
0 answers

not able to install mysql-server on docker container

I am using microservices for seneca with docker. Now when I am trying to create an image with Dockerfile and trying installing mysql-server then it gets hang and if I manually try to install mysql-server inside docker container its gets installed by…
0
votes
1 answer

What is the relationship between seneca and redis

There are two plugins in npm js, one called redis, the other seneca-redis-store, what is the difference between the two of them? https://github.com/senecajs/seneca-redis-store https://github.com/NodeRedis/node_redis#rediscreateclient
sirineBEJI
  • 1,170
  • 2
  • 14
  • 25
0
votes
1 answer

Seneca-web timeout configuration

First of all I would like to say that I am new in senecajs. I am testing this configuration. I have configured Senecjs microservice running on port 9007, which is running and handling request correctly. When I request this service directly I receive…
pbelo
  • 13
  • 4
0
votes
1 answer

How to use routes in seneca-web for rest api?

I want to create rest API with seneca-web (express). I could not find any (full) documentation for a routes file used in it. I base one these examples. Let's assume i have a resource called Task. I want to have these http methods: GET /tasks GET…
hexin
  • 947
  • 7
  • 17
0
votes
1 answer

TypeError seneca indexof if not a function during respond

I have written a simple action which connects to mongo db using seneca-mongo store module, execute a list query and get the results. I can see that the query was successful and the correct results were fetched. When I try to send these results back…
0
votes
1 answer

Issue with pattern matching of urls in seneca when hierarchy is the same

I have 2 urls like : /test/run /test/{test_id} I have 2 separate routes for them like: 1. { prefix: '/test', pin: 'role:test,cmd:*', map:{ run: {GET: true} } } 2. { pin: 'role:test,cmd:*', map:{ test: {GET: true, suffix: '/:test_id'} }…
Shobhit Srivastava
  • 501
  • 1
  • 6
  • 16
0
votes
1 answer

RabbitMQ cluster fails when one node is not reachable

I created a RabbitMQ cluster via Docker and Docker Cloud. I am running two RabbitMQ container on two separate nodes (both hosted on AWS). The output of rabbitmqctl cluster_status is: Cluster status of node 'rabbit@rabbitmq-cluster-2'…
ohboy21
  • 4,259
  • 8
  • 38
  • 66
0
votes
1 answer

i cant excute a Seneca Express url test

my context is the next: i have 3 instances: 1- public/Angular 2 for frontend running in a lite-server in port: 3001 load the page and 3002 is the configuration for lite server 2- public/seneca for client to comunicate to server is in 3003 3-…
Marco Nuñez
  • 146
  • 1
  • 13