Questions tagged [services]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
0 answers
18 views

Decide pattern(s) for Background service which has dependency on services and service-provider and ServiceBus in .net

I'm designing class library with background service which has public static class ServiceCollectionExtensions Which have few methods which will be call outside. Now above mentioned extension will ...
C M's user avatar
  • 1
0 votes
0 answers
28 views

Choosing a Pattern for Handling Different View Models in a Service Method

I'm working on a fairly large but standard dotnet core API. Here's a simplified sample: // Simplified example of a controller public class VehiclesController : ControllerBase { private readonly ...
Carel's user avatar
  • 113
0 votes
1 answer
84 views

Does it make sense to create a new service to house multiple features that are related business-wise but tech-wise independent?

We are beginning to add third-party integrations that all have to do with a certain business concept. (If it helps to make things concrete, in our case it's "measurements," i.e. third-party ...
Andrew Cheong's user avatar
-1 votes
5 answers
119 views

How not to share information across service boundaries in SOA?

We are often told to avoid sharing business data across service boundaries. However, I tend to see the need for a service to access data from a different service. An example of this would be IT ...
geeko's user avatar
  • 236
1 vote
1 answer
56 views

How to deal with mixing models between services?

I am working on an API that has a User resource to represent the current user and a User service that handles business logic for representations of this user. I need to introduce an Organization ...
JRhodes's user avatar
  • 19
3 votes
1 answer
1k views

What are the best practices in public API vs internal only API being on the same service

I wanted to understand what are the best industry practices and the pros-cons in the following 2 choices: A single service that serves internal only API and public API, vs 2 separate services - one ...
Kyuubi's user avatar
  • 131
0 votes
2 answers
135 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 ...
A.Dumas's user avatar
  • 262
-1 votes
1 answer
62 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 ...
Dan's user avatar
  • 207
7 votes
1 answer
394 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->...
JuliSmz's user avatar
  • 181
2 votes
0 answers
54 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 ...
Fast Snail's user avatar
1 vote
1 answer
852 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 ...
John's user avatar
  • 19
1 vote
1 answer
124 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 ...
beaver559's user avatar
2 votes
3 answers
563 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 ...
fluidj's user avatar
  • 147
-1 votes
1 answer
439 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 ...
Volodymyr Melnyk's user avatar
-4 votes
1 answer
559 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 ...
Tim's user avatar
  • 5,415
-1 votes
1 answer
199 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 ...
Abdulkarim Kanaan's user avatar
-1 votes
1 answer
44 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 ...
muaz's user avatar
  • 111
0 votes
1 answer
112 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 ...
Vjolenz's user avatar
5 votes
2 answers
782 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 ...
Keith03's user avatar
  • 49
0 votes
1 answer
59 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 ...
Chris Halcrow's user avatar
2 votes
4 answers
262 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 ...
bobek's user avatar
  • 272
1 vote
1 answer
661 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 ...
jerojitov's user avatar
0 votes
1 answer
61 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 ...
ujwal dhakal's 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. +------------------+ +---------...
mannok's user avatar
  • 189
21 votes
5 answers
21k 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 ...
Posting Questions's user avatar
2 votes
1 answer
7k 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 ...
SEISCOOL's user avatar
4 votes
1 answer
212 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....
javier_domenech's 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 ...
sliders_alpha's user avatar
2 votes
1 answer
3k 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 ...
Jim Layhey's user avatar
8 votes
1 answer
5k 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 ...
JDProwler's user avatar
0 votes
2 answers
5k 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. ...
smned's user avatar
  • 111
0 votes
2 answers
669 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 ...
Daniel Alvarez's user avatar
3 votes
2 answers
166 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 ...
Daniel Alvarez's user avatar
1 vote
1 answer
402 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 ...
HankCa's user avatar
  • 129
1 vote
2 answers
408 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 ...
user2219907's user avatar
3 votes
2 answers
155 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 ...
CodeChimp's user avatar
  • 151
6 votes
3 answers
638 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 ...
Durgaprasad Budhwani's user avatar
0 votes
1 answer
419 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 ...
Ignacio Soler Garcia's user avatar
3 votes
5 answers
586 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 ...
Saad's 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 ...
Timo's user avatar
  • 372
1 vote
1 answer
90 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 ...
Mallorca Software's user avatar
3 votes
0 answers
248 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 ...
rvrabbit's user avatar
  • 139
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 "...
Ron Dadon's user avatar
  • 111
0 votes
1 answer
150 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 ...
Neville's user avatar
  • 121
1 vote
1 answer
74 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 ...
ps-aux's user avatar
  • 301
0 votes
1 answer
955 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 ...
FedericoG's 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 ...
JorgeeFG's user avatar
  • 659
4 votes
2 answers
5k 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 ...
Dima's user avatar
  • 165
13 votes
3 answers
15k 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. ...
Alejandro's user avatar
  • 139
1 vote
1 answer
212 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 ...
Sean Clark Hess's user avatar