Questions tagged [configuration]

Configuration is an arrangement of functional units according to their nature, number, and chief characteristics.

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

In a microservice architecture, can individual microservices contain any configuration file? Is keeping a small config a good practice?

I thought, In a microservice architecture, only the "Configuration Server" will be responsible for providing configuration to individual microservices even if it's a small config. So that we ...
user avatar
-1 votes
1 answer
26 views

How to handle config/env vars in a library project

I am building a new Python library project to be consumed by several of my application projects. The existing code consumes environment variables for various configuration settings. Should my ...
user avatar
  • 153
0 votes
2 answers
130 views

Decisions according to environment

I am trying to convince others that the following first code snippet is bad practice and the second snippet is best practice. Bad practice: // There is only one implementation of Adapter public ...
user avatar
  • 535
0 votes
1 answer
63 views

Should Configurations Be Split To Different Microservices?

As part of a microservice-based system design, I'm struggling to decide where system configurations should reside in terms of domain ownership. For example, let's assume I'm designing a "store ...
user avatar
  • 153
1 vote
4 answers
183 views

Should we directly read environment variables when/where we need them?

Why most frameworks (at least in PHP. I suppose in other languages, too) use the environment variables to set a corresponding configuration parameter and then access the value through a config object/...
user avatar
13 votes
8 answers
3k views

In what configuration file format do regular expressions not need escaping?

I want a configuration file for a .NET program. This file is to configure pairs of regular expressions. The regular expressions belong within a hierarchy of sections. Section1 SubsectionA ...
user avatar
  • 3,357
0 votes
0 answers
24 views

Configuration file handling in ORM libraries

I maintain several ORM libraries written in Python 3 using peewee. In order to use the ORM models, i.e. operate on the database through them, the database object needs to be configured with the ...
user avatar
0 votes
1 answer
163 views

How do you identify unused parts of app and web .config files in .NET? [duplicate]

I am working on removing obsolete/unused pieces of configuration from a .NET product starting with appSettings. There are multiple solutions and I've noticed that appSettings can be in a .config file ...
user avatar
  • 113
-1 votes
2 answers
244 views

Configuration of a staging environment vs production environment

For our software development process we used to set up 3 environments : integration , QA and master. Recently it was decided to add a new staging environment that shall mirror the production ...
user avatar
  • 19
-1 votes
1 answer
85 views

How can I cleanly express these dependencies?

Consider this hypothetical scenario. I have a user form that has a collection of controls that are made available/unavailable based on certain criteria. One important criterion is product type. On ...
user avatar
  • 147
0 votes
3 answers
796 views

"Hard coded" vs. configuration files for values in libraries? (code organization question)

I'm trying to get a good understanding as to whether there is a best practice or standard regarding keeping values within your code libraries or referencing them from another config file. I don't ...
user avatar
  • 3
0 votes
1 answer
86 views

Dependencies in microservices configuration

I'm dealing with a system where: A number of around 50 microservices are available Depending on their needs, clients design their deployment choosing which of those microservices they need Most of ...
user avatar
  • 113
1 vote
1 answer
76 views

Improvement of the config file management

I am working on a personal project for more than 6 months now, this project is composed of three distinct parts, simulation (wrapping a software), database related stuff (store the simulated data in a ...
user avatar
  • 13
1 vote
2 answers
172 views

How to manage configuration file updates when deploying new application version?

Given an application having: Configuration Files (xml or json) An Automated Deployment Process After the deployment the configuration files can be modified by users. When deploying a new version of ...
user avatar
  • 517
0 votes
2 answers
79 views

How to generate frontend URLs in a "12 factor app" service?

I'm working on a system with a user-facing frontend and with 1-n backend services which I'm trying to design according to the principles of the Twelve-Factor App. I'm now facing the task of sending ...
user avatar
0 votes
1 answer
52 views

Deploying appconfigs to different environments

I have a project on Azure DevOps that uses an appconfig. The appconfig holds sensetive data like usernames and passwords and is committed empty to the repo. I have to deploy the project on two ...
user avatar
  • 3
2 votes
1 answer
112 views

Ask for suggestion: data type for parsing stringified fractional numbers

I am the author of a C library for parsing INI files. So far I have delegated the task of parsing values as numbers to the standard atoi() family of functions. However I think time has come that I ...
user avatar
  • 129
1 vote
1 answer
473 views

Best practice for config files in containerized apps

The suggested file structure for docker container is something like root ├── app/ | ├── ... | └── Dockerfile | ├── db/ | ├── ... | └── Dockerfile ... └── docker-compose.yaml So where ...
user avatar
  • 123
1 vote
1 answer
103 views

How to design config files for each environment in github?

I have a list of application configs and business configs in a particular root folder inside our git repository. Below is our current structure as of now: We have a root Data folder and inside that ...
user avatar
  • 21
0 votes
1 answer
285 views

Load single module based on configuration using dependency injection

I'm working on an application that will run on multiple systems and may use different modules to communicate with external systems, but on each system, only one module will be used at a time. As it ...
user avatar
0 votes
4 answers
174 views

app.config prevent end users from modifying it

On our product there are many config files (we have many processes) For "logicical" configuration, we store all configuration in a document based database and then distribute the configuration to ...
user avatar
  • 101
-1 votes
1 answer
84 views

Use two parallel instances of the same .NET assembly

I've have an n-tier .NET 4.6 internal business application. It has a business logic layer class library project that references a data access layer class library project. It's designed to decouple the ...
user avatar
  • 189
0 votes
2 answers
231 views

C# - Generic Configurable Condition checker at Runtime - Achievement System

I'm writing a "generic" achievement system for my MMORPG project, it needs to be friendly & efficient for my game designers (without having to write code to add new achievements). If anyone got ...
user avatar
  • 9
1 vote
2 answers
81 views

How do I maintain configuration in the case of multiple test environments and application instances

What's the best practice for maintaining app configuration for multiple test environments, (and production)? At the moment I am keeping all the config in the code repo (a bitbucket server). Configs ...
user avatar
1 vote
1 answer
52 views

Managing Multiple Applications With Similar Configuration Files

From the .Net perspective (C#, VB, etc.) and MSSQL, I have noticed that for a set of applications (maintained by the same development team) typically have the same defined configuration for connecting ...
user avatar
0 votes
1 answer
95 views

Dynamic Configuration vs. Custom Service

I have been designing an email alert system for my customers which allows them to choose what alerts they receive. AlertManager seems suitable, except for it's static configuration file; A customer ...
user avatar
1 vote
0 answers
41 views

Managing config (environment variables) shared by many applications (lambda functions)

In AWS I've got lots (dozens) of lambda functions. As my organization has gained experience with AWS, we've gone through various generations of infrastrucure around building and maintaining our ...
user avatar
-2 votes
1 answer
207 views

How to configure a React app for different environments

We're configuring the build and release pipeline for our frontend code which is built with React. The final output is just some static HTML/Javascript code. The differences between environments are ...
user avatar
  • 115
0 votes
1 answer
134 views

How to batch organize configuration files?

I've got a program for analyzing specific folders / websites. The program always does the same steps for each folder and website. Therefore I've used JSON files to store configuration (domain name, ...
user avatar
  • 119
1 vote
0 answers
298 views

How to handle different XML configurations for different deployments

I am a software developer facing the following problem. Normally, I develop software and put client specific settings in a separate place (config file, database etc.). A new version of the software ...
user avatar
  • 111
2 votes
1 answer
644 views

How to configure front-end web application from environment?

I'm working on a relatively thin front-end web application that talks to an API. Depending on where this front-end application is served from (CI server, staging server, production server, etc.) I ...
user avatar
  • 369
1 vote
2 answers
4k views

How to maintain and configure properties files for different environments in Java maven project?

A Java project with maven as build tool needs to be deployed to different environments, such as ci, dev, test, prod etc. Each environment has a properties file with the same set of properties such as: ...
user avatar
  • 1,467
1 vote
1 answer
334 views

Advice on designing a scraper DSL

I am creating a DSL for a scraping library I am writing. I would like advice on how to design a DSL, and if the designs I have below are good ones. Apologies if this is an open-ended question, but it ...
user avatar
  • 111
4 votes
3 answers
541 views

How to deal with configuration files that are becoming too complex

There is a db with tables of genes. And these genes would need to be annotated based on the client's needs. So if a gene matches condition x, then add a new column y and value z to that gene. Every ...
user avatar
-2 votes
2 answers
95 views

Question about Restricting Features and Licensing [closed]

We have a product that contains features (Let's say feature A, B and C). We are about to move it to production (a web application) for a certain client. However, as per my boss, we will deploy the ...
user avatar
  • 11
0 votes
1 answer
22 views

Set per-process open file limit in code or in system configuration?

I am working on an internal application that is maintained by the same people that operate the servers the application runs on. We have noticed, while transitioning from Windows to Linux, that some ...
user avatar
  • 369
4 votes
0 answers
133 views

What are best practices for deploying different configurations per environment in Kubernetes/OpenShift?

Kubernetes provides a very elegant mechanism for managing configuration for pods using ConfigMaps. What's not clear from the documentation is what the recommended practice is for using ConfigMaps to ...
user avatar
  • 141
-1 votes
1 answer
127 views

Java design pattern for handling configuration options and responding to changes in them

I'm working on an overlay/HUD for a Java game, where the user should be able to enable or disable certain components and choose configuration options. One such example is a health bar, which the user ...
user avatar
0 votes
2 answers
104 views

Should default values be explicitly stated in configuration files for libraries or frameworks?

In one of the projects I work for, we have just added karma to run unit tests. When reviewing the MR of a coworker, I noticed the karma.conf.js (the configuration file) has 120 lines, which seems to ...
user avatar
  • 161
0 votes
1 answer
56 views

How can I keep a web application easy to self host while still breaking it up in to multiple smaller components

I am working on an open source web application that I will be hosting on my own server and I estimate most users will use that but I also want to easily allow users to run the application themself. ...
user avatar
  • 476
0 votes
3 answers
101 views

Looking for best practices of storing configurations that will be read/write frequently

I'm writing a couple small python scripts to do tasks and act as 'bots' in some applications that will all read/write things for configuration and some very low-level logging of information; Whats the ...
user avatar
  • 19
3 votes
1 answer
109 views

Auto-Initializable Objects Pattern

I'm working on a system where we consistently apply "patterns" or approaches such as Dependency Injection. I'd rather not expose the current underlying technology as not to get biased solutions, ...
user avatar
6 votes
2 answers
607 views

Should a class be responsible for its own configuration

In my workplace I am seeing an issue which I feel is wrong, but I am open to the idea that maybe the way I do it is wrong. A minor example would be a class accepting configuration //pull config from ...
user avatar
  • 1,639
3 votes
2 answers
93 views

Environment configuration vs domain detection

We are developing an angular 5 application that must run in different environments (dev, qa, int, uat, prod), and connect to different APIs depending on the environment. We have traditionally have ...
user avatar
  • 141
2 votes
3 answers
1k views

Where to store application configuration

Until now for each of our applications we store application configuration in the same repository as the code that uses the configuration. We have environment specific yml files (dev, test, .., prod) ...
user avatar
  • 133
1 vote
0 answers
48 views

Manage several procedures

I have a software project which grows rapidly in an unexpected way, many customers request similar tasks but with slightly different needs and parameters. I start to dislike my current code structure ...
user avatar
  • 153
2 votes
1 answer
864 views

Where to store config settings in a text file and when in a database?

I have several web applications. All of them have config files. I'm trying to figure out when it's appropriate to store data in a config file and when in database in json or free format? For instance, ...
user avatar
  • 29
0 votes
1 answer
389 views

Make Docker-based SPA configurable

I have a single page app (Vue JS) that is built and released as docker image. The docker image is based on the official Nginx Docker image and serves the SPA as static content. Until now, there was ...
user avatar
  • 888
-1 votes
1 answer
45 views

When should you use config transforms rather than compiler directives?

I'm currently working on an application which uses compiler directives to vary settings between environments. Would it be worth refactoring these to use settings in the web.config which will be ...
user avatar
2 votes
2 answers
167 views

CORS handling in application or infrastructure?

What are the cons and the pro for handling CORS in infrastructure or application ? I mean is it better to setup CORS on my nginx/apache/tomcat ? or to handle it by coding in my application ? I have ...
user avatar