moleculer-template-project-typescript | Typescript project template for Moleculer microservices | Microservice library
kandi X-RAY | moleculer-template-project-typescript Summary
kandi X-RAY | moleculer-template-project-typescript Summary
Typescript project template for Moleculer microservices framework.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of moleculer-template-project-typescript
moleculer-template-project-typescript Key Features
moleculer-template-project-typescript Examples and Code Snippets
Community Discussions
Trending Discussions on moleculer-template-project-typescript
QUESTION
I am testing moleculer microservices framework to setting up an infraestructure. I will to use typescript (https://github.com/moleculerjs/moleculer-template-project-typescript). My idea is according the documentation is:
- create one project for with API Gateway => make doker => make k8s deployment with N replicas
- create 1 project per microservice => dockerize => make k8s deployment with N replicas
- create 2 project per microservice => dockerize => make k8s deployment with N replicas ...
- create N project per microservice => dockerize => make k8s deployment with N replicas
I will use redis as transporter. I want to use redis also in development.
I have got this doubt, because you can create in the same project all the microservices, but in this way, you are developing a monolitic application (and only in one thread). I think that you need to sepparate each microservice in independent (typescripts) projects to make it after docker images and the make pods in k8s in the deployment phase.
...ANSWER
Answered 2021-Feb-19 at 10:04You can separate every microservices into a separated projects, but with Moleculer you don't need it. You can put all services into one project. The development will be easy and fast, and at deploying you can control which services will be loaded. So you can generate one docker image and control the loaded services with environment variables.
E.g here you can see the SERVICES
env var in docker-compose.yml:
https://moleculer.services/docs/0.14/deploying.html#Docker-Compose
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install moleculer-template-project-typescript
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page