Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [services]

The tag has no usage guidance.

7
votes
4answers
413 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
votes
0answers
32 views

Custom Backend vs Amazon Mobile Hub

I am debating whether to create a custom backend for my app, or to use Amazon Mobile Hub. My understanding as to why I would not want to use Amazon Mobile Hub is: the services layer that should be ...
1
vote
1answer
142 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
123 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....
1
vote
2answers
166 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
0answers
24 views

Service interaction in SOA

We are writing one of our projects in service oriented architecture. I have two services ServiceX and ServiceY. They both inject repositories for domain models X and Y, respectively. If ServiceX ...
0
votes
1answer
103 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 ...
5
votes
1answer
317 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
342 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
105 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
77 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
81 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
104 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
49 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
132 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
0answers
59 views

At what point should I turn several similar programs into a service? (If at all)

At my place of employment, we have a need for several file listeners. These are generally long running programs that wait for files to drop in a specific directory. The way the files are handled ...
0
votes
1answer
69 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 ...
0
votes
0answers
46 views

Background Network Listener for mobile Notification System (architecture and performance )

I'm currently designing an application on the Android platform, and i need to implement a background service (for notifications ) that will run as long as the device is on but i don't know if the ...
3
votes
5answers
371 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
563 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
67 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
225 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 ...
0
votes
1answer
2k 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
80 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
70 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
291 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 ...
0
votes
0answers
109 views

Windows 8: What's the difference between a background process and a service?

The Task Manager in Windows 8 draws a distinction between Background processes and Services. What's the difference?
1
vote
1answer
481 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 ...
0
votes
0answers
49 views

MVVM/Xamarin implementing services that require other services

Currently, I have a xamarin app that has a database, web service and 2 other services to handle the logic between the database/web service and the ui. I'm trying to make it all async, and therefore I ...
1
vote
2answers
2k 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 ...
7
votes
2answers
3k 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
97 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 ...
3
votes
1answer
120 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
321 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
61 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
0answers
40 views

Should I stick a service in a variable or reference it multiple times

This is more of a micro-optimisation question which is why I posted it here rather than StackOverflow. I have many instances of this sort of code in my Symfony 2 application where I get the ...
0
votes
0answers
55 views

Nested Callbacks: Best Practices for giving access?

A bit of background first: I'm creating a set of Bluetooth Low Energy services (BLEDiscoverer, BLEConnector, BLECommunicator) I'm trying to follow the SOLID principle so I'm putting each class in ...
0
votes
1answer
187 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
48 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
431 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, ...
3
votes
2answers
1k 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
667 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 ...
2
votes
2answers
6k 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 ...
16
votes
2answers
490 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
44 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 ...
2
votes
1answer
868 views

RESTful service layer with MVC

I need a advice on creating an architecture where I want API layer in between UI layer and business layer. UI layer should only consume REST services for displaying data. Reason for doing this is ...
1
vote
1answer
193 views

Service Layer to Retrieve Data Specific to Views

I'm building a WPF application, using MVVM, and Prism. It's worth noting that I'm the only developer working on a large project, so resources are limited. Here's what I currently have: Models - POCO'...
0
votes
1answer
68 views

Creating service to distribute passwords to architecture

We have big legacy code working for big corporation connecting to multiple remote/local databases. The configuration files with IP, name and password for connecting to different databases are now ...
3
votes
2answers
457 views

What are the differences between Event Sourcing and Service Layer pattern?

I am reading a book on architecting enterprise applications. In this book the Event Sourcing pattern is introduced which can be used as the "command" part of a Command and Query Responsibility ...