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
9
votes
2 answers

Docker and Rabbitmq: ECONNREFUSED between containers

I am trying to setup separate docker containers for rabbitmq and the consumer for the container, i.e., the process that would listen on the queue and perform the necessary tasks. I created the yml file, and the docker file. I am able to run the…
user1790300
  • 2,143
  • 10
  • 54
  • 123
9
votes
2 answers

Sharing files between microservices

I'm trying to move a project from its current monolithic state to microservices architecture. The project is in Node.js, so I've started looking into Seneca.js, especially with its seneca-mesh module. Moving image manipulation (crop, resize, etc.)…
Anton Egorov
  • 1,328
  • 1
  • 16
  • 33
5
votes
1 answer

app.use() requires middleware functions app.use( seneca.export('web') );

I'm a noob at seneca and I'm just trying to run sample codes from Developing Microservices with Node js, and it says: var seneca = require('seneca')(); seneca.add('role:api,cmd:bazinga',function(args,done){ …
chip
  • 3,039
  • 5
  • 35
  • 59
4
votes
2 answers

NodeJS, Rabbitmq & Docker: the service using Seneca seems to start before RabbitMQ

I am using Docker to create multiple containers, one of which contains a RabbitMQ instance and another contains the node.js action that should respond to queue activity. Traversing the docker-compose logs, I see a lot of ECONNREFUSED errors, before…
user1790300
  • 2,143
  • 10
  • 54
  • 123
3
votes
0 answers

Feathersjs VS Senecajs

I've been playing with Seneca microservice and feathersjs. Both share some level of similarities. I tried the examples of both seneca and feathers. Feathers has few advantages like Simple and nice CLI Generator Hooks Nice Documentation. And the…
Rahul
  • 1,013
  • 1
  • 10
  • 24
2
votes
0 answers

Design Microservice with and without service registry [seneca/eureka]

I'm interesed in design microservices in two different environments, Spring and NodeJs. While in Spring it's easy to find plenty of resources about Netflix Eureka (it's probably the number one with Consul), in NodeJs I found more opportunities to…
Mitro
  • 1,230
  • 8
  • 32
  • 61
2
votes
0 answers

Using seneca mesh on rancher

I have a Seneca mesh which is working flawlessly on my laptop. However it's being impossible making to make it work on rancher. All the containers end diying because mesh timeouts. I've read the entire seneca-mesh source code and the underliying…
Danielo515
  • 5,996
  • 4
  • 32
  • 66
2
votes
0 answers

Docker swarm connect ECONNREFUSED

I am using seneca.js as microservices framework. Evrything works fine in local but when I deply services to swarm I have problem with messages ping service is somhow blocked, here is error from my api gateway when run…
Vladimir Djukic
  • 925
  • 2
  • 9
  • 28
2
votes
0 answers

Seneca.js role in microservices architecture across separate docker containers

I am in the planning phase of moving a c#.net monolithic application to node.js. I would like to implement the microservices architecture, event-driven, for this app using seneca.js and docker to separate each microservice into its own container…
user1790300
  • 2,143
  • 10
  • 54
  • 123
2
votes
0 answers

Why is the whole object not being saved in mongodb using seneca-mongo-store?

I am using seneca-mongo-store to save the entities into backend mongodb. Here is the code I am using to save function addObject(object){ connectToMongo('stupidDB') seneca.ready(function(){ var collection = seneca.make$('install') …
1
vote
0 answers

Node Seneca Mongoose Strange Behavior

I am new to NodeJS and working with the ff packages: mongoose v5.0.9 seneca v3.4.3 with seneca-amqp-transport and rabbitMQ as a broker (not sure if terminology is correct) For the sample code and more info, check this link. I noticed that if I…
pusa
  • 11
  • 2
1
vote
0 answers

Bubble Up Error From Promise Functions

I am trying to get used to using Promises. However, I am struggling to get an error throw in a sub-function to bubble up to the main function. I use Senecajs for all my modules, like so: // resend-invite.js module.exports = function(options) { …
Jack Robson
  • 2,184
  • 4
  • 27
  • 50
1
vote
3 answers

How to implement microservices [Node.js]?

I am new to this, what is a best approach to implement microservices? I found fw like seneca but it is little bit confusing... Is there any tut how to create jwt auth, mongodb and other staff in microservices?
Vladimir
  • 1,751
  • 6
  • 30
  • 52
1
vote
0 answers

Use senecajs with docker

I'm currently working on a project where the server side is based on nodejs (express). We use docker-swarm mainly for load balancing and scalability: In fact, we built a docker image and deployed it under 4 nodes, swarm handles the rest (load…
Hopkins
  • 21
  • 2
1
vote
0 answers

How to render view template by seneca action in node.js

I am working on seneca js to setting up web app in node js. I have set routing and also check different actions using pattern matching in seneca, and it works. I have integrated seneca with express as middleware. Now I want to render view template…
Patrick R
  • 6,621
  • 1
  • 24
  • 27
1
2 3 4