[Solved] What is the right granularity for a microsrevice? [closed]

The answer is, it depends. One way to answer your question is to look at how your teams are organized. Do you have teams organized around Flight Aggregation, Payment, Hotel Booking and Flight booking? If you have, then maybe it makes sense mimic this organization structure in your microservice architecture. After all, Conway’s law state … Read more

[Solved] how to convert array to ArrayObject with php from json file

To read the data $unsortedData = json_decode(file_get_contents(“data.json”), true); the second paramater true make you get an associative array, instead of getting an array of objects (stdclass) to sort the array: usort($unsortedData, function($a, $b){ return $a[‘serial’] < $b[‘serial’]; }); usort will sort the data according the callback passed as the second parameter, so you can customize … Read more