Sending a file from a server as a request to another server. Seems like a pretty common scenario. If the file is large, I consider it an anti-pattern most of the time, but there are cases when there is no better choice. Especially if the top management in your 'agile' team are just concerned about delivering a product to the client asap without considering the possible issues that would arise from not compressing such huge payloads, let alone allotting developers in the team the time to solve such problems. But this post isn't a rant about how several 'certified' practitioners of agile methods apply the opposite of the patterns they were supposed to have learnt. Without further ado, let's begin. Axios is a popular promise based HTTP client. When sending a file like a pdf as a request to another server which might expect the file in the files array of the request, you will also have to use FormData , which does not have native support in Node.js. Here's a s...
Operating systems are the software that makes the hardware usable. Operating systems perform the following rudimentary functions - Process Management Process Scheduling Process Synchronization Memory Management In addition, an operating system (OS) also provides facilities like a GUI or embedded application software that make the system more user-friendly. OSs generally deal with allocation, scheduling and monitoring of resources available to the system. Popular examples are the Windows, Linux and Mac OS series. A process is a program in execution. Processes require resources to complete execution and the allocation of these resources is fulfilled by the operating system. Appropriate allocation algorithms must be utilized to avoid deadlocks. A deadlock occurs when the system is in a standstill because the requirements of all processes can't be met due to a lack of available resources. Common examples of deadlock are the dining philosophers problem and...
Comments
Post a Comment