This paper demonstrates a real-time process monitoring and control framework for the implementation of Industry 4.0 in manufacturing. For a case study, friction stir welding (FSW) has been selected owing to its extensive usage of welding in various manufacturing sectors. Force data has been collected online during the welding and sent to a cloud server enabling telewelding. It is processed through several signal processing and machine learning (ML) techniques for assessment of the weld quality. A control system thereafter controls the weld quality for avoiding the occurrence of weld-defect in realtime. Two ML models have been built, one for assessment of the weld quality, and the other for forecasting the controlled parameters for avoiding defect occurrence. For manufacturing sectors involved in mass production, this technique will be useful to keep a track of the process in real-time and avoid rejection of material in case of occurrence of an anomaly in the process. It is always beneficial for the manufacturing industry to track the quality of a product in real-time, and control the rejection rate, both of which have been successfully shown in this paper.