113
votes
Accepted
Is cloud computing mainly just a marketing term?
The distinguishing feature of "cloud computing" is indeed the way that it is marketed, in particular, the way that it is priced.
Another synonym for "cloud computing" that I ...
105
votes
Accepted
Is it best practice to deploy a project to the server file by file manually?
Which is best practice? to manually deploy one project artifact each deployment or keep doing the file by file deployment?
Neither.
Best Practice is to automate your deployment, completely and ...
87
votes
Accepted
Should you always program server side for a website?
If you don't know whether you need server-side code, you probably don’t*
*Caveat: Server-side code is essential for security, when you want to internally control access to content, data, or ...
65
votes
Accepted
Should I use HTTP status codes to describe application level events
Interesting question.
Basically, we can reduce this down to the right way to classify things in terms analogous to OSI layers. HTTP is commonly defined as an Application Level protocol, and HTTP is ...
56
votes
Should you always program server side for a website?
Read about static site generators. These allow you to create a site in a programmatic manner (using templates, data, etc), and not by hand-crafting HTML. The result is a set of static HTML and CSS ...
30
votes
Should I use HTTP status codes to describe application level events
This question is a bit opinion based, but either way.
The way i see it, 200 can serve "soft errors". When it comes to building API's i try to distinguish between these and "hard errors".
"Soft ...
19
votes
Should I use HTTP status codes to describe application level events
There are two aspects of an API: The effort to implement the API, and the effort of all the clients to use the API correctly.
As the author of the client, I know that when I send a request to a web ...
14
votes
Is it best practice to deploy a project to the server file by file manually?
Manual steps take a lot of effort and are risky: you might forget a necessary file. Maybe not everyone in your team knows which files need to be copied. All of these issues make deployments big, ...
11
votes
Accepted
What happens to multiple parallel tasks running on a server when CPU hits 100% usage?
My question is if the CPU hits 100% usage, are the 10 instances still being parallel processed?
Yes.
Or Does the CPU start sequencing them instead of parallel processing them?
Your processor ...
10
votes
Accepted
Keeping a JSON copy of a database
Basic Drawbacks
Excess complexity, redundancy. More potential for bugs (more paths through more code), more time to develop, test, and more cost to maintain, forever.
Stale Data
The moment the ...
9
votes
Why don't servers deliver JS and CSS at the same time as HTML?
Your question seems to assume that all of these resources are coming from the same source. But that's not how the World Wide Web works.
The browser's prevailing (and correct) assumption is that ...
9
votes
How can I reduce http request while I have hundreds of images and thousands of users
You can't decrease the request count. Not really. HTTP is one response per request (and this is one of the reasons for HTTP/2).
What you CAN do is decrease the number of requests that hit a given ...
9
votes
Accepted
How do serverless architectures manage database connections?
Since a serverless app keeps no state between runs, it can't maintain a database connection pool. Serverless apps really face the same constraints as 90's CGI scripts. In general, a permanent server ...
9
votes
Difference between REST server and REST client
The server exposes the API and the client makes use of it.
For example, Twitter has data it wants to share (Tweets among other things), so it exposes an API which is served by a REST server (...
9
votes
Is it best practice to deploy a project to the server file by file manually?
Best practice would be to implement an automated process of some sort.
Be careful to check that there isn't a special reason for the 'file by file' approach which you would have to take into account.
9
votes
Is cloud computing mainly just a marketing term?
The term “cloud” is indeed very broad and used to represent different realities:
IaaS is “Infrastructure as a service”. This seems to be your current way to see the cloud: its about computing ...
8
votes
Accepted
What really is a "web server" in relation to popular frameworks like Flask, Node.js, Apache?
In IT in general we're all really bad at using words that are either
Not rigorously defined
The rigorous definition is different than the way the term is commonly used (e.g. strong typing)
In other ...
7
votes
Accepted
Should a client ever test server response at runtime?
Yes, you should validate what you get, but you also need to be a Tolerant Reader:
http://martinfowler.com/bliki/TolerantReader.html
Martin Fowler states that:
My recommendation is to be as ...
7
votes
Accepted
Meaningful response to the user after his uploaded CSV was processed?
This depends on the way the CSV is created, maintained or fixed in case of errors, and on how the imported data will be processed after.
Let's start with the question of "all or nothing" vs. "reject ...
7
votes
Running expensive computation on single server
This is a very high-level question, and it might get closed as "too broad". But in short:
What you need is an asynchronous solution: a request doesn't start the expensive job, but simply plans to do ...
7
votes
Accepted
How do services distribute their servers around the globe while maintaining their whole dataset intact?
Video distribution sites like YouTube are read heavy and bandwidth heavy data users, but in terms of complexity, they're relatively simple to scale. They're essentially a CDN type scaling where you ...
6
votes
Why don't servers deliver JS and CSS at the same time as HTML?
Caching
By sending them separately, a web browser can just cache the CSS and Javascript files, and reuse them when another page calls for the same file, skipping additional requests. If they're merged ...
6
votes
Should you always program server side for a website?
You can and should use only a static site if it is enough, or use a static site generator. Why? Maintainability. Code has bugs. Every few weeks there is another WordPress security hole found. If you ...
6
votes
Securing my own software... against myself?
This is a legitimate concern of theirs, but this is best solved with a .pdf file rather than new software.
Say instead of just you, you and a friend built this project and you both administer the ...
6
votes
Should I encrypt my cookies using AES?
What you're describing is the same spirit of a JWT. JWTs aren't encrypted, but they're signed so you can verify authenticity. Nobody can forge a JWT unless they've cracked your key. I would recommend ...
6
votes
Difference between REST server and REST client
The easiest way to think of it is this:
The server responds to requests
The client makes requests
When talking about server and client, it's always relative to the code you are discussing at the ...
6
votes
Is it best practice to deploy a project to the server file by file manually?
With Continuous Delivery (or Deployment, actually) and moving each file by hand, you're looking at the two extremes. It's perfectly understandable that you can't/don't want to create a fully automated ...
6
votes
Accepted
Where is better to calculate the total sum, back end or front end?
All business logic must be done on the backend. On some cases you can replicate on front end (for quick feedback to the user) but never as the source of truth.
6
votes
How do websites/apps deal with so many people online at once?
Application scalability is an enormous topic and not one that can really be addressed in a single post. However I'll have a crack at a basic explanation.
As you've implied most complex websites are ...
6
votes
Accepted
Is storing files of up to 50MB in size in a database for use by multiple servers a reasonable idea? Example inside
NO, don't store files in a relational database
Trust me, I've learned this the hard way. One problem with applications that deal with files, is as they evolve, the users always want to store more than ...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
server × 262architecture × 31
client × 29
java × 19
design × 17
c# × 17
php × 15
client-server × 15
web-development × 14
web-services × 14
http × 14
server-side × 13
rest × 12
database × 11
node.js × 11
api × 10
security × 10
web × 10
tcp × 10
deployment × 9
sockets × 9
web-applications × 8
multithreading × 8
linux × 8
scalability × 8