Tag Info

New answers tagged

2

I'd say a solid no. Microservices more or less inherently need a 24/7 devops support team; an alternative name for the approach is monitoring-driven-development. That's the thing that takes a novel error case and intelligently limits the scope of the failure to something that 99.99% of customers will never be aware of. A hobbyist project won't have that, ...


1

Using microservices in your context may still be useful in your context if the system is large enough so that it makes sense to: Make the parts of the system be maintained by different developers or even teams, Or write the different parts using different languages; for instance, you can have a service written in Python and hosted on a Linux VM interacting ...


3

Microservices incur a penalty in both performance and complexity that is usually traded off in order to be able to scale out more easily (adding more instances of various microservices independently). If you're building a small system, avoid the runtime and cognitive overhead by just building out your app as a "monolith". (a terrible word that people now ...


1

In Python, we have packages and modules. A module is "just" a .py file, and a package is "just" a directory with an __init__.py file (which is often empty). You can import any package or module which is in a directory listed in sys.path, modules within such a package, subpackages within such a package, modules within such subpackages, and so on. While you ...


1

A "web application" is a computer program that accepts web based requests (usually with HTTP/HTTPS) and generates output based on business logic. A "web site" is a collection of pages that are somehow grouped together (often by domain name). A "web site" may be composed of one or more "web apps". A web site may also contain "flat files", which are not ...


-4

The web console which are used as the addons to perform programmed tasks for some web or internet pages are 'web apps' while the pages we see in our web browser which physically shows in the devices after we hit enter to an URL are webpage. The web app may be vary from extension file format But webpage are in .htm, .html, .asp, .aspx, etc format.


4

Web site is the most generic term for "something visible to people using a web browser and accessible via a URL". This can be just a collection of static HTML files and images, but nowadays that is pretty rare. A Web application is a web site with (more or less complex) functionality behind it, i.e. what the user sees is generated by some sort of program, ...


0

Server has Mainly Three Tier or layer Presentation tier Application tier (business logic, logic tier, or middle tier) Data tier Presentation tier or front end client communication done here. client never use DBMS or File System directly it connect to presentation layer. this where authentication is performed. Application tier is main tier where all the ...


1

In broad, general terms, the layers are: Data Store <--> Repository <--> Domain <--> Interface <--> (Actor) The data store can be anything... An XML file, a memory stream, a database, a key/value store. The repository typically converts from the data store to domain objects, and can include the use of a DAL. The domain is where ...


5

You should respond with HTTP 400: Bad Request. The request could not be understood by the server due to malformed syntax. The client SHOULD NOT repeat the request without modifications. The response should include an explanation of why the request was rejected—e.g., “Invalid JSON” .


2

In the example you use there is nothing that can be parallelized. Each step requires data from the previous. Hope you are using better example for your design drafts. The direction in which you are heading requires quite elaborate orchestration (as you have realized yourself) and this is non-trivial problem. One possible technical option is to use ...


0

I see you use php, try to stick to the psr coding styles: psr-1 and psr-2. Look into the decorator pattern. this is a pattern commonly used in these kind of situations. Edit: added a small example You probably have some kind of LineItem class that is used to represent items in your cart. They probably look something like this: interface LineItem { ...


0

The Open/Closed principle allows you to add new methods. You won't be able to alter the interface to existing methods. It may be simpler to have a class that takes a cart and returns/recalculates the totals. Try to avoid using this class to maintain state between calls.


5

Uncle Bob once said: "We don't ship shit...". Working with legacy tools(IE 9) and scraping website you are: Spending significant amount of time on unscalable, potentially unreliable technology. Introducing very custom component understanding which would require future developers a lot of time understand and potentially will cost you a lot more in along ...


0

A Node program is at its core a normal program, it isn't even a web-server unless you write code specifically to make it so (though that is pretty easy with the built-in HTTP library). Your program will get the HTTP requests, and your code can respond any way you like, using all the resources otherwise available to the program. If JavaScript was old-school ...


0

Unlike all other servers you have mentioned, Node is single threaded, but asynchronous - as some have mentioned here, it schedules callbacks instead of waiting for operation to execute and runs callbacks when the operation is complete, however a number of other operations might have been processed in between with the same thread. Caveats: Although it's a ...


6

Let's immediately get the Turing-completeness disclaimer out of the way and say any language can probably approximate any runtime feature of any other language. Good? Good. The main difference between the Node.js approach and a Python threaded-server (or a typical Java HTTP server implementation) is that Node.js is single threaded while the latter two are ...



Top 50 recent answers are included