Hot answers tagged

14 votes

What is really different between SOA and Microservices

Service Providers, doing only one thing The core difference, which has widespread consequences of the project, is that with Microservices these Service Providers are independently deployable and ...
Telastyn's user avatar
  • 109k
10 votes

monolith vs microservices for app idea

Never over architect from the get-go. You will spend most of your time on the architecture and not the actual business case you are implementing. (This is especially true if you are trying out a new ...
c_maker's user avatar
  • 8,280
8 votes

Breaking up a monolith into SOA, and breaking referential integrity

That referential integrity is a concern at all suggests that there are implicit dependencies between the domains. One thing that I think people who have drunk the microservices kool-aid often ...
JimmyJames's user avatar
  • 26.7k
7 votes

Why is it so bad to read data from a database "owned" by a different microservice

Over the last 20 years I've seen a few large modular database designs and I've seen the scenario suggested by David quite a few times now where applications have write access to their own schema/set ...
Rob Bygrave's user avatar
6 votes

Microservices architecture and bounded contexts

I believe your question is a catgory error. In short, microservices are a way of organizing your architecture, while bounded contexts are a way of organizing the classes/objects you manipulate in code....
Ixrec's user avatar
  • 27.7k
6 votes
Accepted

Microservices & Canonical model

Apologies in advance for relying on the @ArseniMourzenko comment, but once I started to read the Wikipedia I immediately understood what Canonical Schema means. Here OP's comment that focuses on the ...
Laiv's user avatar
  • 14.6k
6 votes
Accepted

In a Service Oriented Architecture, should a service make a request while it is servicing a request

In a SOA application, instead of a monolith component solving some problem, you have multiple services - each dealing with its own business concern - that now must communicate and collaborate to solve ...
Bogdan's user avatar
  • 3,610
5 votes

SOA/Microservices: How to handle authorization in inter-services communications?

I advise you to have an internal channel of communication between the microservices. For example, using some message broker like RabbitMQ internally to send/receive or publish/subscribe messages ...
Wahid Bitar's user avatar
5 votes
Accepted

Modeling request/response in domain driven design

Domain Driven Design does not provide an answer for this. DDD is more focused on business logic. Your problem is how to represent data as a string of characters sent to and from a client across a ...
Greg Burghardt's user avatar
5 votes
Accepted

Should client application clean the data that a server application can not internally process? (In SOA Systems)

When you have a Client-Server architecture, the Server parts must never assume that the input they receive is coming from/through your Client implementation. Always assume that the input you received ...
Bart van Ingen Schenau's user avatar
4 votes

What's the purpose of having services in containers?

Having services in containers does not mean that they all have to be on the same server. Instead it makes it very easy to have them all on the same server some on different or all on different. You ...
Eric Johnson's user avatar
4 votes

Microservices architecture and bounded contexts

There are differing opinions on how bounded contexts should relate to microservices, some of these opinions are largely predicated on how a microservice is defined. Those who say there shouldn't be ...
Yuli Bonner's user avatar
4 votes
Accepted

Why should I use JAX-RS REST instead of normal servlets?

A chat service as a rest-ful api is a GOOD match ! I think resource-based interfaces are still a very important concept to talk about. The above answer is just not correct, even though it is over 4 ...
Lemonade's user avatar
  • 156
4 votes
Accepted

Autonomous Microservices, event queues and service discovery

Your conclusions seem mostly founded and sum up very nicely the way to go for microservices. I'd however not fully support 2, 5 and 8: 2) A simple dependency should not automatically lead to a ...
Christophe's user avatar
  • 76.6k
4 votes

Breaking up a monolith into SOA, and breaking referential integrity

I would be careful about thinking of sharing a database with another service. Every time a database change is made, you now how to verify that the change does not affect any other service that uses ...
Mike L.'s user avatar
  • 642
4 votes

What are the implementations of SOA other than web services?

Before HTTP based services became predominant, there were several other systems which provided similar functions. In the Windows world, when COM was a popular component model, it was common to use ...
Avner Shahar-Kashtan's user avatar
4 votes

Verifying Access Token in Each Service of a Microservice Architecture

Validate the token in the service by checking the signature. The whole point of sending a jwt with claims is so you DON'T have to hit the auth service again. Doing so introduces a bottleneck to your ...
Ewan's user avatar
  • 74.3k
4 votes
Accepted

Contract decoupling on microservices

It appears that you're focusing on one specific point in Mark Richard's paper without considering the context that the rest of the paper provides. Read the following three paragraphs (quoted from the ...
Robert Harvey's user avatar
4 votes

How to integrate different "microservices" into a transaction?

I think you correctly diagnose the problem, Micro-service architecture is designed for scalability and distributed systems. You don't want them to talk to each other, or use the same database. Either,...
Ewan's user avatar
  • 74.3k
3 votes

Autonomous Microservices, event queues and service discovery

Micro-services are about decoupling different functionality domains. Each service can be developed at a different pace, by a different team, using a different technology stack. This creates ...
Joeri Sebrechts's user avatar
3 votes

Best practice to reduce calls in microservice architecture

It sounds like the pattern you are looking for is API Gateway. Sometimes also called "Edge" or "EdgeService". It can be used to as a single entrypoint to your cluster and to aggregate service call ...
Oswin Noetzelmann's user avatar
3 votes
Accepted

What is really different between SOA and Microservices

Here is the bottom-line The one obvious difference between SOA and Microservices is the notion of Smart Endpoints Dumb Pipes Unlike SOA, that would rely on oblivious service consumers and ...
A.Rashad's user avatar
  • 594
3 votes

RMI/CORBA vs Web service

The goal is the same: have a mean for systems using different languages and operating systems to interoperate. Therefore, it's not that different after all. How should you choose one over another? It ...
Arseni Mourzenko's user avatar
3 votes

WCF ChannelFactory vs auto-generated Service References in enterprise?

I would say Option 2 because it is more maintainable and clean. You can sort of create Generic wrapper and have your customized implementation and exception handling* strategy at one place, published ...
rahulaga-msft's user avatar
3 votes

In MVC + SOA Architecture, What is the Rationale for Placing Business Logic in Models?

The Model-View-Controller pattern is a UI pattern that follows a few basic principles: The View is a User Interface, a thin veneer in front of the Controller. The only logic that should be in the ...
Robert Harvey's user avatar
3 votes

Should client application clean the data that a server application can not internally process? (In SOA Systems)

If the server can clean the data sensibly then its fine to do so. For example you mention phone numbers. But there are several popular ways of writing a phone number. US Phone number: 754-3010 Local (...
Ewan's user avatar
  • 74.3k
2 votes

Where to put Spring configuration file?

Is your project split in Maven modules? If so, you can add an extra module just for config files. Lets call it config-module config-module | |--> src\main\resources\config\spring\...
Laiv's user avatar
  • 14.6k
2 votes

Why should I use JAX-RS REST instead of normal servlets?

Note: webservices are high level to servlets Even though we can write services through servlets, using webservices we can write services in structural way easily. There are two flavours of ...
Gowtham's user avatar
  • 121
2 votes

What is the most accepted transaction strategy for microservices

There are many solutions that compromise more than I'm comfortable with. Granted, if your use case is complex, such as moving money between different banks, more pleasant alternatives may be ...
Timo's user avatar
  • 382
2 votes
Accepted

Looking for pros/cons on using OWIN vs. a simple hand-rolled token based auth

Couple of things after a quick look: App domain reloads on your server will clear out your token dictionary and cause clients to be logged out. Also not possible to effectively scale this over ...
Paddy's user avatar
  • 2,623

Only top scored, non community-wiki answers of a minimum length are eligible