Questions tagged [services]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
117 views

What is the definition of a `service` in microservice/Service-oriented architecture?

I looking for the scientific agreed upon definition of 'service' in Microservice/Service-oriented architecture. I found a the definition It logically represents a repeatable business activity with a ...
user avatar
  • 212
-1 votes
1 answer
59 views

Service-specific releases vs Releasing all services on every change

The following applies to a platform/company at an early stage in its life, moving quickly and cheaply with a small engineering team. Imagine a platform with the following components: Cloud ...
user avatar
  • 207
6 votes
1 answer
170 views

Service Design Pattern

I'm working with services and I found out there are at least 3 ways to use them inside controllers... Statically: Like helper, Text::uppercase('foo') Instancing it: $text = new Text(); $text->...
user avatar
  • 171
2 votes
0 answers
48 views

Communicate with multiclient applications

I have a 3rd party application. Basically I need to run one instance of that application for a one user. For 10 users I have to run 10 instances. From my API I want to communicate with a specific ...
user avatar
0 votes
1 answer
272 views

Do I need a service layer if my current service layer looks like this? Also asking about other basic controller service-repository patterns questions

I currently have a service class RoutineService.cs that contains methods that each perform one thing, call the repository and return that exact same object. With how simple it is, is my service ...
user avatar
  • 9
1 vote
1 answer
74 views

Multi threading a database driven service

First some background on the problem, we have a windows service (C Sharp) that receives new messages and processes them.It is database driven so it checks a table for unprocessed records, processes ...
user avatar
2 votes
3 answers
388 views

Should services in a service layer be thread safe?

This is for an Android app, but I think the question applies to any software designed with a service layer. Our app is structured with a presentation layer that handles the UI and a service layer ...
user avatar
  • 147
-1 votes
1 answer
144 views

Services calling services

The application I'm developing has: controllers (they are responsible for processing RESTful API calls), services (their methods are being called by controllers, they are responsible for operations ...
user avatar
-4 votes
1 answer
405 views

What difference and relation are between fault tolerance and (high) availability?

From Coulouris' Distributed Systems 5ed Chapter 18 Replication 18.1 Introduction Increased availability: Users require services to be highly available. That is, the proportion ...
user avatar
  • 5,271
-1 votes
1 answer
167 views

Design Unstoppable Service

I have developed a Windows Service to prevent user from using the camera on group of computers. However, I am trying to find a way to ensure the service is never deleted. I tried CanStop in .NET ...
user avatar
-1 votes
1 answer
43 views

What are best ways to manage and keep track of services

We have an enterprise software introduced as SaaS model, and we end up with a huge number of services which are sometimes duplicated but no one knows, so what might be good practice ways to keep track ...
user avatar
  • 111
0 votes
1 answer
88 views

Questions about Direct access to data source from Services

Background: I'm trying to separate my concerns in the application architecture the best possible way. In a nutshell: The requests are parsed and go to an Action Action decides which service(s) to ...
user avatar
5 votes
2 answers
642 views

CQRS sequential numbering of business documents

I am currently building a microservice-based system to learn CQRS/ES, Docker, AMQP and all the other goodies that goes with it. I have never asked a question online before as I am usually pretty good ...
user avatar
  • 49
0 votes
1 answer
54 views

What types of Google Cloud application should I consider for something running as a continually available service that subscribes to a pub/sub?

I want to create an application that will run as a service that subscribes to a Google Cloud pub/sub topic, and delivers emails based on 'alerts' that it receives through the pub/sub subscription. It ...
user avatar
2 votes
4 answers
187 views

Migration from Anemic Models to Rich Models

I am looking into improving my overall application architecture and (I think) I understand the issues my Anemic Models are causing. Here is my current architecture: Controller with injected Service ...
user avatar
  • 272
1 vote
1 answer
459 views

Correct approach to pass data to service layer

I'm curious what's considered the (best) correct way to pass data to a service layer in ASP.net Core. Say I have a Person entity that has a relation to a Image (profile picture) entity and another ...
user avatar
0 votes
1 answer
59 views

Domain services structuring

Currently i am handling placing my services by their action type like App Services Storage Payments Providers Gateways IpnHandler But i felt like whenever our payment providers are growing i ...
user avatar
5 votes
1 answer
1k views

How can I resolve circular dependency within service layer in a n-tier architecture system?

I am currently starting a new project with a 4-tier architecture design. The layers is set as follow. +------------------+ +---------...
user avatar
  • 179
17 votes
4 answers
16k views

If a microservice architecture needs a separate database per microservice then it's too costly & unmanageable. Why do we even need it?

I read about microservices and it seems illogical to me to create a separate DB per service just to achieve isolation. I can achieve the same using only web services and a single database. Why do we ...
user avatar
2 votes
1 answer
5k views

Is it okay to transport a DTO inside of a DTO?

Let's suppose we have to entities, X and Y where Y is part of X, being this: class X { private int fooX; private List<Y> fooY; } class Y { private long barX; private int ...
user avatar
4 votes
1 answer
178 views

Repository Pattern whith complementary objects (agregates)

Refactoring an old API into a new one, because of several tools using it (admin and some mainteinance scripts) and compatibility with older versions reasons the database structure must remain the same....
user avatar
3 votes
2 answers
3k views

How should the service layer be done?

so I have this android app at work, if I understand it right the DAO/services/UI layers is to "decouple" the UI from the database. I have 2 problems with that : 1/ Decoupling Like this if things ...
user avatar
2 votes
1 answer
2k views

Should services be used in a ViewModel

So I have a service which is injected in my controller via dependency injection. I can either use it in the controller multiple times to convert a value when assigning to a particular property in a ...
user avatar
8 votes
1 answer
4k views

Is there a thing as "too many threads"

I wasn't sure if here or SO was the right place to ask this, but here goes anyway. So I want to improve a system that is currently running. It has services and many stand alone apps, but none of ...
user avatar
0 votes
2 answers
4k views

Best way to implement Windows service in C#

I have written a C# service using MVC (No view). The program starts execution and processes some data from database and stores some aggregated data and works just fine in VB whenever i run it. ...
user avatar
  • 111
0 votes
2 answers
549 views

Is it valid to split an API in different microservices?

Taking the following scenario. A blog where anyone can see publications and comments and users with enough privileges who create, update or delete this publications or comments. Publication list ...
user avatar
3 votes
2 answers
163 views

How to identify solely or grouped services for a microservice

Here is an example I asked myself to better understand microservices, but the thing is, I am confused on how to identify them in this particular case. There are cinemas in each country, those ...
user avatar
0 votes
1 answer
323 views

Help defining architecture - async messaging; web app as portal in web page

I don't know if this is a legitimate architecture that I've been playing with. It consists of nodejs servers for services and to create web app front ends. And it is using async messaging (Redis) to ...
user avatar
  • 109
1 vote
2 answers
341 views

Stateless Service

I am currently working on a player design. Without going into details I have two main layers 1. Playback services 2. User Interface. Playback services consist mainly of Player service and Browser ...
user avatar
3 votes
2 answers
128 views

For entities that have Parent/Child relations, is it better to have a single Service for the parent and children or separate them?

I have seen it done both ways, but I have never seen any discussion around which is the more "right" way. Say you have a entity that has children relationships to other entities. The children can't ...
user avatar
  • 151
6 votes
3 answers
422 views

Is it good practice to put service business logic based on audit trail?

Our application creates audit trails in response to system actions and user actions. Our business logic depends on these audit trails to find out which user performed what action. Is it good practice ...
user avatar
0 votes
1 answer
355 views

Hosting what normally would be a windows service inside a web server

We have the requirement to implement some fire and forget long running tasks that fit perfectly into windows services (remote data acquisition and processing, etc) but the requirement is to deploy ...
user avatar
3 votes
5 answers
537 views

Does my code violate DRY principle?

Suppose that I have two services Person Service and Company Service and I want to maintain links between them for example a Person is linked to Company because he works there or he owns the company ...
user avatar
  • 49
1 vote
3 answers
2k views

Callback injection

I have a service that needs to make a callback. Basically, it is an event that is expected to be handled in exactly one place, and that is too important to be optional. The obvious approach seems to ...
user avatar
  • 372
1 vote
1 answer
85 views

Service with abstract model initiation

I want to implement an abstract module to store credits and I have the following structure: Model: Credit (abstract) Dao: CreditDao (interface) Service: CreditService The Credit model should be ...
user avatar
3 votes
0 answers
244 views

Submitting to a leaky-bucket service: Keep track of bucket level myself or use quota data in response

I'm designing software that will connect to a remote service and send it requests from a local application. This remote service implements a leaky-bucket algorithm to determine whether to process the ...
user avatar
1 vote
1 answer
5k views

Microservices session data when communicating internally

I'm not sure the title is correct, so please advise if you think of a better title. The scenario is: We have an API gateway that exposes REST API to our clients (web and mobile apps). We have a "...
user avatar
  • 111
0 votes
1 answer
142 views

WCF Services for transaction processing and business logic

I work at a small to medium enterprise that are in the business of handling the processing of transactions for the selling and purchasing of "online, electronic products". Things such as prepaid ...
user avatar
  • 121
1 vote
1 answer
73 views

When should application fail to start?

What are the best practices regarding start of an application which depends on several services and maybe some file system stuff like mounts, directories or config file. Let's say the dababase is not ...
user avatar
  • 301
0 votes
1 answer
707 views

Is it advisable to use hashes as DTOs in Ruby when applying DDD?

It seems to me that Ruby hashes would be a good option to implement the Data Transfer Objects that the Application Services receive from the client code as commands and queries requests. For ...
user avatar
1 vote
1 answer
2k views

What is the way to make an internal API

I have a Symfony project. I want to make this project API based, but also with a Web UI. So, I have 2 Bundles, ApplicationBundle and WebUiBundle. In Application Bundle, I have application, domain ...
user avatar
  • 659
4 votes
2 answers
4k views

DDD infrastructure layer: implement service+persistence or just persistence

Short intro: I build an application, using .NET, Entity Framework (EF) as ORM and an SQL Server for persistence. My knowledge of SQL Server goes far beyond simple requests, and I use it to drastically ...
user avatar
  • 165
11 votes
2 answers
12k views

Should I use a layer between service and repository for a clean architecture - Spring

I'm working in an architecture, it is going to offer a rest api for web client and mobile apps. I'm using Spring(spring mvc, spring data jpa, ...etc). The domain model is coded with JPA specification. ...
user avatar
  • 119
1 vote
1 answer
158 views

Service dependencies during local development

I'm working on a system split into multiple services. Some services (and especially the front end web server) depend on other services to function. When developing these locally, do you point to the ...
user avatar
2 votes
1 answer
206 views

How to reduce dependency in communication between servers

Background: My team writers back ends, whose job is to receive input, perform calculation and either return the result to the caller or to another server down the line for additional processing. We ...
user avatar
  • 567
3 votes
1 answer
1k views

Calling repository inside a mapper

Is it bad practice to autowire and call a repository from within a mapper class? I have a mapper class that maps a model to an entity for JPA. In order to keep repository calls within my service, it ...
user avatar
0 votes
1 answer
67 views

Windows Console App vs Service, Part II

Windows Console App vs Service I would like to extend the question at the above post, as the previous answers did a great job of helping me understand the difference between a service and not a ...
user avatar
  • 3
0 votes
1 answer
301 views

DNS-SD implementation

I am trying to implement DNS-SD, and I understand how it works, but don't really understand the purpose, so I have a few questions about it. Let us assume that we have two devices on local network, ...
user avatar
2 votes
1 answer
54 views

Handling and reporting errors consistently

Errors can come from many different sources - third-party services, libraries, environment, etc. When an error prevents a user from performing their desired action, these diverse errors should be ...
user avatar
  • 948
1 vote
1 answer
48 views

Correct Pass along in Service oriented architecture

I'm not entirely sure how to phrase my question, so I'm going to give an example. Say you work on payment processing software. You implemented Service Oriented architecture and you have 3 main phases ...
user avatar