Questions tagged [synchronization]
Maintaining several related processes, threads, objects or data in a consistent state. Not to be confused with replication.
194 questions
5 votes
5 answers
283 views
How to ensure that release tags are uniformly created throughout a cohort of closely-related Git repositories?
Working as part of the release team for a sprawling open source project that uses dozens of Git repositories, I regularly run into situations where one or more of the satellite repositories are ...
1 vote
2 answers
919 views
How can I code synchronous programs in Node?
I'm a career programmer, very comfortable writing programs in Python, and recently started learning Node. I understand the asynchronous features are useful in many situations, but when I debug my code,...
0 votes
2 answers
252 views
How do I guarantee ordered processing of occurring events in concurrent environment?
I have a Kafka topic providing events of the following type: id(hash):[ADD|REMOVE]. These events may be generated at a high rate and are idempotent, i.e. getting 123:ADD one time and ten times in a ...
1 vote
1 answer
109 views
How best to keep Excel Workbook field in sync across class instances
I know almost nothing about threads, synchronization, ... That being said, I am working on a record handler, that hits Excel sheet to pull/push data. There exist, in my code base, a BaseRecordHandler, ...
1 vote
0 answers
292 views
If you run a function in a different thread, but you wait for it to finish in your main thread, is that function asynchronous?
Backstory Probably a stupid question, but I just have a sneaking suspicion that "asynchronous" is the wrong terminology to us for naming my template function here: template <class T> ...
1 vote
3 answers
211 views
Ensuring run-once behavior in a multi-threaded environment via volatile lambdas?
I'm coding an enum strategy pattern where one of the strategies makes use of an ScheduledExecutor: class ControllerImpl { //... boolean applyStrat(StratParam param) { getStrat().apply(...
0 votes
1 answer
169 views
Right way to combine data between Mongo and DynamoDB
I am looking for a way of dealing with the following situation: 1- Have an items collection in MongoDB 2- Have a users collection in DynamoDB 3- Each document in the items collection has a "...
4 votes
4 answers
4k views
What will you do if multiple users access your application at the same time?
I'm an experienced Software Engineer but very weak in concurrency because of no prior experience in that. I've been interviewing with several companies in which I was asked similar kind of questions ...