Let’s get back on topic. Jonathan, in your opening email you stated that, in your view, the 2 main areas of tradeoff were:
> 1. Is it worth giving up local latencies to get full global consistency? Now we’ve established that we don’t need to give up local latencies with Accord, which leaves: > 2. Is it worth giving up the possibility of SQL support, to get the benefits > of deterministic transaction design? I pointed out that this was a false dilemma and that, in the worst case, a hypothetical SQL feature could have it’s own consensus system. I hope that won’t be necessary, but as I later pointed out (and you did not address, although maybe I should have phrased it as a question), if we’re going to weigh accord against a hypothetical SQL feature that lacks design goals, or any clear ideas about how it might be implemented, how can we rule that out? So Jonathan, how can we rule that out? How can we have a productive discussion about a feature you yourself are unable to describe in any meaningful detail? > On Oct 11, 2021, at 6:34 PM, Jonathan Ellis <jbel...@gmail.com> wrote: > > On Mon, Oct 11, 2021 at 5:11 PM bened...@apache.org <bened...@apache.org> > wrote: > >> If we want to fully unpack this particular point, as far as I can tell >> claiming ANSI SQL would indeed require interactive transactions in which >> arbitrary conditional work may be performed by a client within a >> transaction in response to other actions within that transaction. >> >> However: >> >> 1. The ANSI SQL standard permits these transactions to fail and >> rollback (e.g. in the event that your optimistic transaction fails). So if >> you want to be pedantic, you may modify my statement to “SQL does not >> necessitate support for abort-free interactive transactions” and we can >> leave it there. >> >> 2. I would personally consider “SQL support” to include the capability >> of defining arbitrary SQL stored procedures that may be executed by clients >> in an interactive session > > > I note your personal preference and I further note that this is not the > common understanding of "SQL support" in the industry. If you tell 100 > developers that your database supports SQL, then at least 99 of them are > going to assume that you can work with APIs like JDBC that expose > interactive transactions as a central feature, and hence that you will be > reasonably compatible with the vast array of SQL-based applications out > there. > > Historical side note: VoltDB tried to convince people that stored > procedures were good enough. It didn't work, and VoltDB had to add > interactive transactions as fast as they could. > > 3. Most importantly, as I pointed out in the previous email, Accord is >> compatible with a YugaByte/Cockroach-like approach, and indeed makes this >> approach both easier to accomplish and enables stronger isolation than the >> equivalent Raft-based approach. These approaches are able to reduce the >> number of conflicts, at a cost of significantly higher transaction >> management burden. >> > > If you're saying that you could use Accord instead of Raft or Paxos, and > layer 2PC on top of that as in Spanner, then I agree, but I don't think > that is a very good design, as you would no longer get any of the benefits > of the deterministic approach you started with. If you mean something > else, then perhaps an example would help clarify. > > -- > Jonathan Ellis > co-founder, http://www.datastax.com > @spyced --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@cassandra.apache.org For additional commands, e-mail: dev-h...@cassandra.apache.org