Hot answers tagged

19 votes
Accepted

Should I lock rows in my cloud DB while they're being edited by a user

One thing that will help you here is terminology. What you are describing here is called 'pessimistic locking'. The main alternative to this approach is 'optimistic locking'. In pessimistic locking,...
JimmyJames's user avatar
  • 26.8k
8 votes

what is a Cloud-Native application?

tl;dr As other answers have said, it's an application that is designed to run in the cloud and not just adapted later to shoehorn into the cloud. It's mainly a marketing term, not so meaningful in ...
joshp's user avatar
  • 3,481
6 votes

How to organize projects in AWS?

AWS Organizations is the standard approach to managing a hierarchy of accounts. However, it does not allow billing to be consolidated at arbitrary points in the organization; it's a tree, not a graph. ...
guest's user avatar
  • 131
6 votes

Is a cloud / lambda function a microservice?

They are similar The Serverless function shares some of the same characteristics as a Microservice. Taking AWS Lambda as example. With the AWS Lambda setting, when a client sends request, it first ...
lennon310's user avatar
  • 3,212
5 votes
Accepted

Where to store data for Microservices Architecture?

However, let's say that I want to split a service into its own "microservice". Where would it store its data? If I have 5 microservices, spinning up 5 RDS instances, 5 redis clusters doesn't seem to ...
JimmyJames's user avatar
  • 26.8k
5 votes
Accepted

Best practices for app-cloud synchronization of database representation

You are trying to create a distributed eventually-consistent system. Those are inherently complicated. It's understandable that you are having difficulty coming up with a good solution because there ...
amon's user avatar
  • 134k
5 votes

How to ensure execution of a process that could take anywhere from 30 seconds to 3 hours

Nowadays, if I were designing something like this from scratch, I would use an Actor Model implementation like Akka. These systems provide the resiliency and monitoring that you require, out of the ...
Robert Harvey's user avatar
4 votes
Accepted

What's stopping Cloud Platforms from owning the whole deployment process?

Taking your example of AWS, it can indeed manage the entire deployment process, including deploying the full environment from Cloud Formation config files through to the source code of the application....
David Arno's user avatar
  • 39.2k
4 votes
Accepted

VMs are not created on the same physical server to balance load?

You are assuming that the physical host has dedicated all of it's hardware to a particular virtual host. If the physical server has 8 processors and 32 GB of ram, and it dedicates 2 processors and 8 ...
Sign's user avatar
  • 2,643
4 votes

Architecture for uploading large files from many end points to the cloud storage

Keys to the Kingdom Consider the cloud storage as if it were your house, and the access codes as the keys that open its front-door. Do you: Hand the keys over to your customer to go and collect ...
Kain0_0's user avatar
  • 16.2k
4 votes
Accepted

Best way to handle versioning between a desktop product and a cloud product when one depends on the other

The most "user friendly" solution is to establish a mostly stable interface between A and B and keep B as backwards compatible as possible over longer periods of time with any new version ...
Doc Brown's user avatar
  • 206k
3 votes
Accepted

How microservices db are updated and sync when scale?

It seems like you are under the impression that each instance of the microservice will also have its own database server that would need to be synchronized with the database servers for other ...
Thomas Owens's user avatar
  • 82.4k
3 votes
Accepted

How to keep state alive between deployments

The trick is to not keep any session state within the stuff you redeploy. Instead: keep state in a separate database that persists beyond a deployment, or keep state purely client-side. Where a web ...
amon's user avatar
  • 134k
3 votes
Accepted

Architecture for uploading large files from many end points to the cloud storage

Option 1 vs Option 2 Any validation you do on your server is obviously completely pointless, if you then allow the user to upload the file directly to your cloud storage (Option 1). Going through ...
doubleYou's user avatar
  • 2,787
3 votes
Accepted

Working on Cloud app without connection

You'd have to provide some local, client-side logic, as well as use local storage. Viewing cached content, offline. Taking commands that have effect when connected later. This is not trivial: ...
Erik Eidt's user avatar
  • 33.7k
3 votes
Accepted

Experience in working on cloud?

There are a number of things that go into the term "cloud development". I'm focusing on AWS because it's the platform I know, but this should be generalizable. I include the AWS terminology to give ...
walpen's user avatar
  • 3,231
3 votes
Accepted

Is consistent hashing required for sharding?

Consider sharding as a form of distributed hash table, or distributed range table. Now it depends on which one the above the sharding is doing. For a distributed hash table, for each new piece of ...
Kain0_0's user avatar
  • 16.2k
3 votes
Accepted

Data Class: spread boilerplate for each different database over multiple class copies, or add complexity to original class?

Rule of thumb: If 80% to 90% of the code will be equal, and you have to maintain only 10 to 20% of invidual fields for each storage type, keep it in one class. For example, in your example, you have ...
Doc Brown's user avatar
  • 206k
2 votes

De-duplication procedure

As mentioned, only someone from Dropbox could clearly answer your questions in a 100% accurate way, but the overall concept is pretty easy to understand. First of all: "data de-duplication" ...
Mario's user avatar
  • 1,499
2 votes

Can ssh -X be considered as SaaS?

SaaS is a business term for the delivery of software. "Service" here is being used in the business sense (plumbing service, roof repair service) rather than in the technical sense (HTTP service, SSH ...
DaveGauer's user avatar
  • 1,287
2 votes

How to check for ID uniqueness on large dataset that can't fit into memory or on a single disk

This smells of homework or an interview question, especially the "10 GB of disk space" part. But here goes: Generate your IDs using a cryptographically-strong random number generator. Use your 10GB ...
guest's user avatar
  • 131
2 votes
Accepted

How to introduce Cloud and DevOps in an organisation that is conservative in nature?

You introduce it by doing it. Now that it's done it needs support. Who's ready for a new toy? engineers' initiatives were not really encouraged or wanted Stop expecting to get rewarded by ...
candied_orange's user avatar
2 votes

How to ensure execution of a process that could take anywhere from 30 seconds to 3 hours

Break your input into fixed-size batches and process each batch independently. This gives you several benefits: If one batch fails or times out, you only have to retry that batch without worrying ...
casablanca's user avatar
  • 4,964
2 votes

Is a cloud / lambda function a microservice?

Yes - a cloud/lambda function is a microservice. Independently deployable see https://microservices.io/ Independently deployable https://martinfowler.com/articles/microservices.html to describe a ...
Kind Contributor's user avatar
2 votes

Serving content to authenticated users

If you're happy with a small window where anybody who gets a specific "secret" URL can download the content, you can use presigned S3 URLs. If you're not happy with that, you probably want ...
Philip Kendall's user avatar
2 votes
Accepted

Can companies use already-purchased on-prem tooling in the cloud if they want to move to the cloud?

Yes, migrating on-prem solutions to the cloud is often called a “lift and shift” migration, as opposed to building cloud-native systems. But whether this makes sense can depend on the licensing ...
amon's user avatar
  • 134k
2 votes
Accepted

Architecture for SaaS that can run in my company's cloud or in clients' networks

You need some logic that depends on whether you're running the software yourself as SaaS or whether the software is run by a customer, but both more monolithic and more service-oriented approaches can ...
amon's user avatar
  • 134k
2 votes
Accepted

What exactly do these cloud architecture terms mean?

Hosted-Application Means it doesn't primarily run on the users computer. It runs on someone else's. This saves the cost of maintaining it locally at the expense of the privacy and control lost by ...
candied_orange's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible