microservices

Why does 12factor recommend not to daemonize processes?

我的未来我决定 提交于 2019-12-10 17:19:59
问题 12factor recommends not to daemonize processes. What are the disadvantages of doing so? 回答1: They are looking not at the daemon process itself, but at managing that process and ensuring it's running properly. They cite instances of kludgey frameworks built around daemons where the daemon was not written with an eye towards that management, thus requiring an excess of resources to restart it, clean up after it, etc. They point out and recommend the use of system management facility software,

Spring Eureka App doesn't show dashboard

◇◆丶佛笑我妖孽 提交于 2019-12-10 15:59:09
问题 There is a Eureka Server application: @EnableEurekaServer @SpringBootApplication public class RegistrationModulesServiceApplication { public static void main(String[] args) { SpringApplication.run(RegistrationModulesServiceApplication.class, args); } } With applicaton.yml config (be default): eureka: instance: hostname: localhost client: registerWithEureka: false fetchRegistry: false server: port: 1111 On the first run - I saw dashboard with statuses. Like in documentation: Then - after

How to merge/consolidate responses from multiple RESTful microservices?

帅比萌擦擦* 提交于 2019-12-10 14:27:14
问题 Let's say there are two (or more) RESTful microservices serving JSON. Service (A) stores user information (name, login, password, etc) and service (B) stores messages to/from that user (e.g. sender_id, subject, body, rcpt_ids). Service (A) on /profile/{user_id} may respond with: {id: 1, name:'Bob'} {id: 2, name:'Alice'} {id: 3, name:'Sue'} and so on Service (B) responding at /user/{user_id}/messages returns a list of messages destined for that {user_id} like so: {id: 1, subj:'Hey', body:

How to rollback MicroServices

匆匆过客 提交于 2019-12-10 13:45:40
问题 I have doubt related to MicroServices. Suppose there are 5 Micro-Services lets say M1, M2, M3, M3, M4 and M5. There are 4 databases which are connected/accessed by 4 micro-services. Example, M2 connected to MySql, M3 connected to Cassandra, M4 connected to MangoDb and M5 connected to Oracle. Now Step-1: M1 making a call to M2 to update some user data in mySql and it updated successfully then finally it got success response from M2 Step-2: M1 making a call to M3 to update some data in

No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue

妖精的绣舞 提交于 2019-12-10 13:41:35
问题 I am currently working on cloud technology. In one of my current projects, I created the service fabric cluster in Azure. Then I tried to connect to the cluster through Windows PowerShell. I got the error No cluster endpoint is reachable, please check if there is connectivity/firewall/DNS issue. Please tell me how to resolve the above issue. Regards, Pradeep 回答1: After did a lot of research, I find out the solution for my above problem using these below links. Prepare your development

Good practices to propagate errors through micro services

孤街浪徒 提交于 2019-12-10 13:18:52
问题 We have a micro services architecture and we are having some discussions about how to expose internal errors to the client. Here's an example: Let's suppose we have 3 services, service A, B and C. When the client sends a request to the service A, which is public, this service sends a request to service B that sends a request to service C (which are internal and needs authentication, but the credentials are stored internally like environment variables, they are not send by the client). And for

Fabric Message is too large

房东的猫 提交于 2019-12-10 13:04:50
问题 I'm trying to pass 5MB~ data from a service to an actor, and I'm getting the error: Fabric Message is too large How can I increase the maximum size that can be transferred between micro-services? I looked at the following page to see my options. I tried setting: <Section Name="ServiceReplicatorConfig"> ... <Parameter Name="MaxReplicationMessageSize" Value="1073741824" /> </Section> Please help. 回答1: Somebody helped me on GitHub with the following: In order to set maximum size for the remoting

View injection container for angular

允我心安 提交于 2019-12-10 12:26:45
问题 I'm trying to have an angular module for each backend microservice. So to keep each module independent and clean while they use each other's components when available and a default "service-is-not-available" component, when the component is not found in the container. Example Scenario: Let's say there are a sales and accounting module. The sales module needs a component with selector: 'total-price'. Sales module and Accounting module are both used by the main module, but the sales doesn't

SFTP ChannelSftp.put stop it's execution process but successfully being uploaded or copy the source file

人盡茶涼 提交于 2019-12-10 12:25:02
问题 details: in my API i have struggle on debugging why is that the ChannelSftp.put method hangs up or stop it's execution process but when checking it's output it is successfully being uploaded. here's my code snippet: MyService.class @Inject MyConfiguration conf; public String copyAndMove( String fileName ){ try{ MyServer origin = conf.getOriginServer().setFileName( fileName ); MyServer destination = conf.getDestinationServer().setFileName( fileName ); SFTPServer originSftpServer = new

Acknowledgement to clients on asynchronous microservice

半世苍凉 提交于 2019-12-10 11:36:17
问题 I read everywhere that service to service calls should be asynchronous in microservices. When the request has to pass through 2 or more async services, how can we do the client acknowledgement? Here is my real time scenario. We are developing an email sending functionality in our organisation. We are planning to have 4 API services for this in the following order. Public API - exposing the email functionality to public Validation API - to validate the genuineness of the email and other fields