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...
The markets are beginning to show telltale signs of pessimism and fear. Participants are beginning to respect the fact that economies are shrinking all over the world. GDPs are hitting historic lows. There's a lot of liquidity in the market. Unemployment is on the rise, and whatever employment exists is severely skewed towards IT and its support. There have been talks of a crash or a dead cat bounce since the bullish reversal that happened a few months back. Naysayers always exist, and people are always happy when their predictions are on point. What does all this mean to the average Jane/Joe in the market? Or the average Janoe? Depends how long you can wait. If you're young and invested in the market, hold. This is all just noise. If you're planning to retire any time soon, now would be a great time to sell and go on a vacation, if you want to enjoy all the money you've accumulated throughout the years. It's all a matter of perspective really. Markets are almost al...
Comments
Post a Comment