Posts by alves • 416 points
14 posts
-
-2
votes0
answers21
viewsQ: When to use async and await?
Good morning, I started working with c# and . Net recently on a micro service architecture. I noticed that all methods (controllers, services and repositories) use async/await. No criteria.…
-
0
votes1
answer60
viewsQ: Define Entity Account in dotnet
Hello, I have to define an Entity Account for a microservice of retail software. An Account can be the type: Individual Familia Enterprise Being the type individual is composed of the traditional…
-
0
votes0
answers61
viewsQ: Communication between micro services
Hello I am developing an architecture in micro services dotnet a software in the retail area (retail, for who is en). I have three micro services: Client, Catalog and Command. Customer: all customer…
-
0
votes0
answers36
viewsQ: API Gateway + Aggregator Pattern
Hello, I’m developing a gateway API on a micro service architecture in a Kubernetes environment. The idea is to have not only a routing Gateway but also an aggregator that aggregates response from…
-
1
votes0
answers29
viewsQ: Mediator vs CQRS vs Repository
Hello, I’m developing a migration to a new ORM, in . NET, from an application with a complex SQL database, many small tables between them. A very tight system. In order to better organize the…
-
0
votes0
answers25
viewsQ: XOR operator in if
Hello, What is the meaning/result of the operator in the following if? char ch, str[32]; if(str[inf - 1] == ch ^ str[sup -1] == ch) counter++; I know that the goal is only one of the conditions is…
-
0
votes1
answer112
viewsQ: Provide a downloadable file in an API that returns JSON
Hello, I am developing a Java API. It is basically a java Servlet that returns content in json (application/json). With a Tomcat server. One of the response fields is supposed to be a link to the…
-
2
votes2
answers393
viewsQ: Compressing a string to upload into a field of the JSON object
Hello, I am developing a java API, which returns a json object. One of the final json fields is long text, of unknown dimension. Text may or may not contain special characters. I am sending the raw…
-
3
votes1
answer941
viewsQ: Circumvent primary key duplication error
Hello, I have the following script, . sql, to create a table and also create a Trigger. SET client_encoding TO 'LATIN1'; CREATE OR REPLACE FUNCTION before_insert() RETURNS trigger AS ' DECLARE n…
-
9
votes2
answers1588
viewsQ: Data structure representing a deck of cards
I’m developing a project in Python, where I have to play a card game. I am in doubt about which data structure to use, according to the description provided: Each card must be represented by a pair…
-
1
votes1
answer1296
views -
1
votes1
answer196
viewsQ: Access the service layer from the controller
Hello, I am developing a REST web service that queries Apache Solr data. I am using Spring boot + data with Solr repositories. I don’t know how to connect the service layers, respository and…
-
3
votes1
answer1677
viewsQ: error: cannot find Symbol - Maven install with class Folder
I have a Maven eclipse project that uses a Folder class. That folder has the . java and .class. The classes I use in the project are in build path as class Folder, when I do Maven install it gives…
-
8
votes2
answers621
viewsQ: Dynamic scheduling of tasks with spring batch + Quartz
I have a project in Spring Batch + Quartz, which loads a file and then processes the data from the file. Only that I wanted to implement a view with a form where I had the option to choose the start…