Questions tagged [services]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
-1
votes
1answer
69 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 ...
-4
votes
1answer
77 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 ...
-1
votes
1answer
157 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 ...
-1
votes
1answer
32 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 ...
0
votes
1answer
42 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 ...
4
votes
2answers
266 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 ...
0
votes
1answer
33 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 ...
2
votes
4answers
149 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 ...
1
vote
1answer
265 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 ...
0
votes
1answer
54 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 ...
1
vote
0answers
45 views

Is there a Django equivalent to Symfony's services?

Symfony has services, which are separate from controllers so that they may be re-used anywhere. Additionally, Symfony services come with dependency injection. Is there a direct analog to Symfony's ...
3
votes
0answers
413 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. +------------------+ +---------...
10
votes
4answers
4k 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 ...
1
vote
1answer
2k 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 ...
4
votes
1answer
147 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....
2
votes
2answers
1k 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 ...
0
votes
1answer
788 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 ...
7
votes
1answer
2k 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 ...
0
votes
2answers
3k 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. ...
0
votes
2answers
136 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 ...
3
votes
2answers
149 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 ...
0
votes
1answer
162 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 ...
1
vote
2answers
199 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 ...
3
votes
2answers
90 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 ...
3
votes
2answers
173 views

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

We are developing one application and we are creating audit trails for each and every systems as well as a user action. We have some business logic in services and for which we are looking back to ...
0
votes
1answer
76 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 ...
3
votes
5answers
440 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 ...
1
vote
2answers
976 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 ...
1
vote
1answer
72 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 ...
3
votes
0answers
234 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 ...
1
vote
1answer
4k 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 "...
0
votes
1answer
118 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 ...
0
votes
1answer
72 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 ...
0
votes
1answer
437 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 ...
1
vote
1answer
919 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 ...
2
votes
2answers
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 ...
9
votes
2answers
7k 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. ...
1
vote
1answer
102 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 ...
2
votes
1answer
178 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 ...
2
votes
1answer
518 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 ...
0
votes
1answer
65 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 ...
0
votes
1answer
254 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, ...
2
votes
1answer
53 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 ...
1
vote
1answer
46 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 ...
3
votes
2answers
598 views

Is an attempt to create a duplicate resource, e.g. a user, worthy of throwing an Exception?

Say I have an REST API for creating users in an application. The request goes to a controller, which marshals the request data into a domain object, and passes it to a service to create a user. Now, ...
4
votes
2answers
2k views

Repositories, Gateways, Models and Architecture Questions

I am working with a Laravel project and I am looking for a way to solve the issue of bloated models and cross referencing between them. I had started extracting higher level methods to a repository ...
6
votes
3answers
849 views

Alternative to Anemic domain objects (Simple example provided)

I want to model (TV)Events and Reminders and I’m wondering what’s ‘the best’ way to model this. The requirements are roughly When an Event has no Reminder, a Reminder can be created When an Event ...
3
votes
2answers
11k views

How should a service communicate with an activity in real-time?

How should a service communicate with an activity in real-time? BroadcastReceivers seem too slow and unreliable. Sometimes they appear too slow or stop working entirely. As an example, there was a ...
19
votes
2answers
618 views

Anemic domain models and domain services injection

The anemic domain model is described as an anti-pattern in domain driven design by Martin Fowler. To have business logic on the domain models often domain services are used. But injecting domain ...
2
votes
1answer
45 views

creating platform for multiple webapps

I have already built a nodejs webapp that I want to make available as a service, but I don't know the next steps to automate the whole thing given the following steps : people come to my website ...