All Questions

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

why both hash comparison and equals method are used for collision resolution and value retrieval in Hashmap? why equals method is not enough?

I gone through the Java's HashMap implementation methods put() and get(). I noticed that, when collison occurs they use compares hash and also calls equals method. why is this necessary. I feel ...
-2
votes
0answers
23 views

Database design for discord bot on multiple servers

My bot currently listens to new messages coming in, and if a message contains a keyword (different from a command) it will automatically log information about who posted that unique key into a ...
-3
votes
0answers
30 views

Should one handle database failures for every operation? [closed]

Google cloud sql has a 99.95 SLA. Assume that I have a webservice which does two database inserts, where leaving one out would leave the system in an incorrect state. I'm not sure whether I should ...
-3
votes
0answers
41 views

Factory method inside Value Object

I have a value object which is basically an input to the whole application, coming in via the URL (a web app). Let's call it SupplierId. It is fundamentally a string, with the caveat that there is a ...
-2
votes
0answers
36 views

Product versioning in a serverless application [closed]

We have separate repos - One each for backend and frontend. Backend is all serverless microservices that are independently versioned. Front-end is semantic versioning. Versions are incremented in the ...
1
vote
2answers
46 views

Modulo Division of Hash Output

In a design book I was reading they describe a method to determine a database sharding scheme by taking the hash (MD5, SHA1, whatever) of a userid (integers or uuids) and then (whether encoded or not) ...
0
votes
2answers
107 views

How can I avoid re-running code when exceptions are thrown and user re-submits?

I have a checkout process that 1) creates a user account in Stripe and my database, 2) creates a paymentMethod in Stripe and logs the last4 in the database, 3) creates the subscription in Stripe and ...
1
vote
3answers
71 views

What makes a data pipeline scalable? Best practices for scalable design?

I have been searching about this topic for a few days and have not yet found anything on books, courses or tutorials. What is a way to make data pipelines more scalable, that doesn't involve NoSql or ...
-2
votes
0answers
26 views

New Mongodb based micro service advice requested

Coming from an Oracle and Java background... Have been asked to create a micro service using Mongodb. Not knowing mongodb well, I'm not certain what my best design choice is. In the Mongodb, I'll be ...
-4
votes
4answers
145 views

Why would anyone listen to the IETF? [closed]

I'm not trying to insult the IETF, I'm just struggling to understand how the IETF is a "standards organization" but the standards are "voluntary" meaning there is no civil or ...
-3
votes
2answers
30 views

Moderator/Administrator Script for website (HTML) [closed]

G´Day, So I am making this website out of basic HTML. I wanted to add a Moderator/Administrator script for it and was wondering if there was any way I could Create a script myself easily. (Keep in ...
0
votes
1answer
26 views

Solution architecture for a Kafka streaming to website system

Not sure if this is the correct forum for this question - but I could really use some advice. I need to design a system (within certain constraints). The system must implement the following logic: A ...
0
votes
2answers
38 views

Design for generating/filling a document based on a template-file, while considering permissions from a database?

You have the backend for a web application. I'd like to keep this is as disconnected from specific programming lanuages as possible, but if necessary, assume we're talking about PHP. You need to write ...
-4
votes
0answers
41 views

Designing a communication engine [closed]

I've this system that stores different communication scheduler for various communication channels(email and SMS). For this it communicates with a couple of services. For email and SMS template it hits ...
-3
votes
1answer
52 views

Technical perspective vs managerial perspective in software failures [closed]

I am learning about various causes that lead to software failures. So far, two prominent causes of failures seem to be managerial and technical. An example of the resources I have looked at is this ...
-3
votes
1answer
68 views

How do client-side libraries prevent spoofing?

I'm looking at Segment's documentation right now and they have something called a "write key" that you include in your client-side JavaScript in order to send analytics data to the backend. ...
0
votes
0answers
57 views

DDD Value Objects: when is enough enough? [duplicate]

Where do you like to draw the line for modeling a single value as a Value Object v.s. a primitive? For example if I have an internal order number and a customer order number, would you model them both ...
-2
votes
0answers
25 views

How to distinguish LCtrl vs RCtrl, LShift vs. RShift in MSKLC (Microsoft Keyboard Layout Creator) [closed]

I'm trying to create a keyboard layout for use for linguistics. I'm using MSKLC to remap the keys, however I can't figure out how to specify Right Shift vs. Left Shift and Right Ctrl vs. Left Ctrl in ...
0
votes
2answers
85 views

REST HTTP Response code for a resource that the user is not authorised to access

Suppose user A creates a private resource at, for example, /books/somebooktitle If user B attempts to access the resource at /books/somebooktitle what code should be returned? HTTP403: Permission ...
0
votes
0answers
34 views

Encapsulation of External API in Infrastructure Layer AS Persistence

My question is about DDD, the Infrastructure layer, it's relation to the Domain, and specifically how we can take advantage of the ability to "swap out" one persistence implementation for ...
0
votes
1answer
47 views

What are the approches to to fetch common data btween microservices without replication?

One of the alternatives for managing common data between microservices is replicating the data needed by multiple services in their own databases but there are large data sets that we do not want to ...
0
votes
1answer
37 views

Best way to enable field removal through PATCH

I am developing a REST API and I would like to allow the users to remove a field of the object through PATCH. My idea was to use a null field on the PATCH body as a signal to remove this field of the ...
15
votes
4answers
3k views

Adding Units To Magic Numbers

Considering this question and the most upvoted answer, and his specific example of public static final int THREE = 3; might it make sense to allow this sort of usage if we added units to the ...
1
vote
0answers
52 views

How to search for Model Numbers that contain wildcards?

I have a database full of ModelNumbers that I want a user to be able to search for. The tricky part is that some of the model numbers have lots of funny characters including: * - Alphanumeric ...
0
votes
0answers
29 views

How to represent deeply nested data

I work on a project that has a lot of hard-to-grasp data shapes. I'm talking about lists nested as deep as 5 levels. Often I have to reorder the way that data is represented in these lists. For ...
1
vote
0answers
38 views

What is the benefit of performing authn/authz at the API gateway instead of at the service?

I want to know is if we should perform authentication at the API gateway, at the individual service, or both. Let's frame this question and descussion in the context of new development. Specifically, ...
-1
votes
1answer
32 views

Looking for way to store, get, partially update few relatively small JSON documents which has different unique types

I have an app with many individualistic features which behavior is controlled by settings. Let's say these are a few utility services with the following settings that are historically stored in ...
0
votes
0answers
9 views

Storing Preview data in Cloud Firestore

On an app I'm creating there are two views for an event and I'm wondering about what would be a good way to store the data so that it only takes one read to fetch all the data needed for a single read....
-5
votes
1answer
35 views

Distinguish between User Guide and README.Md [closed]

I am tasked to create a readme file but I am not sure what I should include details on how to use the app.
-3
votes
2answers
33 views

Multiple Association between two classes in different directions

I'm having trouble with modeling the association between movies and DVD disks - it's my homework for university. So I have a "Film" class and a "Disk" class. One film can be on ...
-3
votes
1answer
48 views

How to sync chunks of memory data across multiple computers [closed]

Multiple computers are connected via WAN (Internet or VPN). For example, there are 3 computers A, B and C. Each of them produces data a, b and c. The data is represented as memory chunks char[]. In my ...
-1
votes
0answers
35 views

Workflow Engine vs Microservices [closed]

I have a set of microservices and a set of workflows. Input data decide which workflow to run and I have to execute the microservices in that order depending on the input data. I have 2 approaches. A ...
0
votes
1answer
42 views

Table design question - DynamoDB the right choice?

Our team has started to use AWS and one of our projects will require storing approval statuses of various recommendations in a table. There are various things that identify a single recommendation, ...
1
vote
3answers
194 views

How can we reduce the PR load on our team?

We are using microservices(read a lot of GIT repositories) and our department has 90+ java developers. All of them write code which mean there are a lot of PR`s every day. We are using BitBucket and ...
0
votes
0answers
27 views

Managing concurrent TCP connections with Go, Docker and Kubernetes

I need to consume several APIs concurrently. In order to do that I decided to containerize each API client code and manage them using Kubernetes. Some of those APIs need to be "walked". They ...
-3
votes
1answer
60 views

Whats the purpose of use-case and data-sources?

I have a question about where should I get the info required for making an api call. Let's say I have this : Presenter --> Use Case --> DataSource --> Api Ok now to do my api call, I need a ...
1
vote
2answers
57 views

Make infinite loop handleable via delay?

I have a Node.js micro-service architecture-based back-end. Services communicate with each other via PubSub. E.g. upon a request to service A, service A messages either service B or service C via ...
-2
votes
0answers
22 views

How to create, manage and use multiple dynamic database connections at run time?

As I am creating different database connections on the basis of database credentials (i.e. JSON or POJO with all the credentials required to create a DB connection). e.g. Imagine a Map containing ...
3
votes
3answers
279 views

Is a good practice reuse HTTP codes to encode something else?

As we know HTTP codes are used in HTTP response. Usually with this code we can have an idea about what happened. For example if I make a get request and I obtain a 404 I can figure out that the ...
0
votes
2answers
43 views

How to version modules that depend on different framework versions

I work as a Website developer. We use a framework for building the backend of our sites. This framework recently released a new major version with lots of breaking changes. We have some sites using ...
0
votes
0answers
20 views

Managing container configuration out of the application's own datamodel

I'm not quite sure if this is the right place to ask, or even quite how to ask this. Usually there's a strict hierarchy where a tool such as Amazon ECS (or Kubernetes) manages docker containers, and ...
-4
votes
0answers
36 views

Naming conventions for first-class functions [closed]

I am just curious, how do people name their closures? Is there any convention that will make the clarity and readability better? For instance: Should I use verb or noun? Should I add a prefix or ...
-5
votes
2answers
61 views

Two types of problems? [closed]

According to my experience, there are two types of problems: For some problems I have been able to use some quick/dirty workarounds. Users are happy. Since the outcome quality has been acceptable for ...
0
votes
1answer
27 views

Inject dependencies which map to settings locator

At the moment, the application I work on relies on an ISettingsService which is injected via the constructor; classic dependency injection. As time goes and the application's capabilities (understand ...
-2
votes
2answers
108 views

OOP: How to Manipulate Objects Using ORM Techniques?

about those objects and arraylists inside the classes, derived from one-to-many relationships, using the ORM techniques, what's the best way to deal with them at the time of setters and validation ...
9
votes
6answers
2k views

Composition over inheritance when adding functionality to a foreign object

Note: I am not sure of the correct terminology for what I am describing, so if you have suggestions for a better title please feel free to edit it. "Favor composition over inheritance" is ...
-1
votes
0answers
20 views

'file' command: specifying search depth for 'search' option in /etc/magic file? [closed]

How can I specify how far/deep the 'file' command should search in a file to locate a match on a "search" definition ? I am trying to create a universal specification in "/etc/magic&...
-5
votes
0answers
29 views

What is the best pattern to implement in order for distributed services which don't communicate to iterate asynchronously through rows of a db table?

Assuming you have multiple servers separately running applications which need to asynchronously process data from a database table, without processing any of the rows multiple times, what would be the ...
-1
votes
2answers
46 views

Applications interested to the same event and concurrency

I have an event pubblished in a bus(rabbit) and two application that are subscribed to this Event. public class CreationEvent { public int CreationEventID {get; set; } ... other properties } ...
1
vote
1answer
90 views

When is it Counterproductive to Separate PHP and HTML

Understanding that it is less load on the server to not have to parse HTML, when does it work the other way, as far as server performance. The majority of my Web sites are database-driven - often the ...

15 30 50 per page
1
2 3 4 5
1201