BeforeEditEnd vs. AfterEditEnd - whats the difference?

https://docs.dhtmlx.com/suite/grid__api__refs__grid_events.html
I wonder what is the difference between the events {Before,After}EditEnd

Are they ment to trigger a REST API call to the webserver to store data back to a database?
How should this be done?

I aplogize for the delay. The main purpose is that from the beforeEditEnd event you may “validate” your new value and decline it using the “return false” if it is needed.]
While the AfterEditEnd event after the value of your cell is already changed.