microservices

Don't allow direct calls to Microservices. Only allow through API Gateway

落爺英雄遲暮 提交于 2019-11-30 08:43:10
Maybe this is a strange question (I'm new with Microservices). But I'm looking for some info on how proceed with this. Does not need to be Spring specific, but that's the framework I'm using at the moment. Example: Lets say we have two Microservices a) http://myurlfortesting.com:8085/api/rest/serviceone b) http://myurlfortesting.com:8090/api/rest/servicetwo and we have setup Spring Zuul (acting as the API Gateway) with the following rules that forward the incoming calls: /rest/one -> http://myurlfortesting.com:8085/api/rest/serviceone /rest/two -> http://myurlfortesting.com:8090/api/rest

Enabling session in lumen framework

有些话、适合烂在心里 提交于 2019-11-30 07:16:38
I have two (but let's image more) micro-services (API) which need to be aware of authenticated user. Ideally I would simple like to resume their sessions. All micro-services are using same storage for sessions: redis. All API calls will have Cookie header, so all services will be able to resume sessions based on that cookie. I have successfully implemented this via PHP $_SESSIONs. Now the question: how would you go about implementing this with Laravel/Lumen? The accepted answer is outdated. I answered and explained a bit how to properly do it in my answer on this question I also posted what is

Running multiple projects using docker which each runs with docker-compose

无人久伴 提交于 2019-11-30 07:06:09
We are using microservices approach to build our product. We are using some projects which each uses docker-compose to run. The problem is that in development environment, if we want to change codes in multiple projects and test developed codes, we must run projects separately and link them together manually. Now we want to create a development kit which clones projects and runs them together and handles links. Can docker-compose handle multiple docker-compose file? If not is there any sufficient tool to do that for us? Or is there any recommended approach for our goal? EDIT: For example we

Single Sign-On in Microservice Architecture

柔情痞子 提交于 2019-11-30 06:12:34
问题 I'm trying to design a green-field project that will have several services (serving data) and web-applications (serving HTML). I've read about microservices and they look like good fit. The problem I still have is how to implement SSO. I want the user to authenticate once and have access to all the different services and applications. I can think of several approaches: Add Identity service and application. Any service that has protected resources will talk to the Identity service to make sure

Advantages of Service Fabric Microservices vs Collection of Azure Cloud services/web apps

喜欢而已 提交于 2019-11-30 05:40:59
问题 I have a application that can be broken down into multiple communicating services. My current implementation is monolithic and I want to reorganize it so that individual components can be deployed,iterated upon, scaled independently. I see two ways to do this with Azure: Service Fabric service composed of set of communicating micro-services (stateless, web-api etc.) A collection of individual Azure Web Apps/ Cloud Services that call each other at the http end points. Are there any obvious

how to get my configuration values in yml - using dropwizard (microservice) Jersey D.I @Injection?

↘锁芯ラ 提交于 2019-11-30 04:47:59
问题 here's my code snippets. here's my yml file: productionServer: host: production-server.amazonaws.com publicIp: xx.xx.xx.xx privateIp: xx.xx.xx.xx userName: xx.xx.xx.xx password: xx.xx.xx.xx remoteFilePath: fake/path/ fileName: test.txt privateKey: private-public-key.ppk server: applicationConnectors: - type: http port: 8080 - type: https port: 8443 keyStorePath: key.keystore keyStorePassword: password validateCerts: false adminConnectors: - type: http port: 8081 - type: https port: 8444

Laravel passport, Oauth and microservices

左心房为你撑大大i 提交于 2019-11-30 04:33:07
问题 I am having a difficulty in terms of architecture and wondering if someone has some insights. The plan I will have multiple microservices (different laravel projects, catalog.microservice.com, billing.microservice.com) each providing an API. On top of these will be an angular fronted consuming those APIs. I will have another micro service (passport.microservice.com) for auth now thanks to laravel 5.3 passport this is even easier. The flow: User goes to catalog.microservice.com user need to

Microservices: What are smart endpoints and dumb pipes?

半城伤御伤魂 提交于 2019-11-30 02:23:06
I have read an article " Microservices " by Martin Fowler and find it difficult to understand smart endpoint s and dumb pipes . Please explain these terms, examples are welcome. I didn’t read the article, so I can only speculate what he can mean exactly, but as he gives ESB as an example against microservices and ZeroMQ as an example for micro services I hope my speculation will be pretty exact: One of the ideas of Unix (and Linux) is to build small independent applications and connect them via pipes. The probably most common set of two command which I’m using is ps and grep like this: ps aux

Product Versioning Microservices

耗尽温柔 提交于 2019-11-30 01:47:32
I go into microservices architecture based on docker and I have 3 microservices, which together create one product for example "CRM system". Now I want my client to be able to upgrade his product, whenever he wants to. I have 3 different versions of my microservices, which one should client see? I guess product version should be independent of microservices, because copying one of the microservices version would make me go into more trouble than having no version at all. So is there any pattern, idea to handle such situation? The only thing that comes to my mind is to have another repository

Service Fabric Reliable Services Pipeline design

社会主义新天地 提交于 2019-11-29 23:57:40
I need to implement pipeline if Service Fabric's Reliable Services, and I need some guidelines about what of these approaches is preferable from the viewpoint of reliability simplicity and simple good design: I have been investigating this topic a lot as well (to be applied to my work for NServiceBus and MessageHandler ) and would like to provide my thoughts on the matter. However I haven't determined what the best model is yet. If you disregard the practical implementation with ServiceFabric I would categorize the proposed approach in the following order when it comes to reliability: C) The