Stacking is a technology in which switches are capable of having a separate connection via a specialised cable (Stack cable) that connects multiple switches together at the backplane. With stacked switches, one is in charge of the stack and that’s the one where all configurations are performed. So if you take two 24-port switches and stack them, you’ll appear to have one giant 48-port switch when it comes to the configuration.
With cascaded switches, each device is configured independently and you can have multiple ports interconnecting each of your switches in a group, and the spanning tree protocol can be used to dynamically deal with any outages and efficient movement of your frames. You will have to look at how things are configured and how many links you’re going to use to create a “mesh” for failover.