Please log in to watch this conference skillscast.
It is worth noting that Troy doesn't connect to Cassandra during compilation. Instead, the schema is provided as CQL scripts, checked-in within same code base, consisting of plain
CREATE TABLE CQL statements. That get's loaded at compile-time into a light-weight Schema engine capable of analysing queries and providing information about column types.
Those CQL scripts can be written as increments, by adding new scripts containing
ALTER TABLE statement, instead of editing existing scripts. This allows Troy to check backwards and forward compatibility of queries against different versions of the schema. As well as providing tools to write migration scripts.
Currently, Troy uses reflection-based black-box macros. But also has a working proof-of-concept using the new style inline/meta as well.
There will be slides and code, along with live coding examples.
The Call for Papers is now open for Scala eXchange 2017! Submit your talk for the chance to join a stellar line-up of experts on stage. Find out more.
YOU MAY ALSO LIKE:
- Factor Recursion Out of Your Codebase (SkillsCast recorded in December 2018)
- Meta Engineering Productivity Summit (Online Conference on 29th - 30th November 2022)
- High level JDK comparison for cloud native hosting (Online Meetup on 30th November 2022)
- London Java Community Unconference (in London on 5th December 2022)
- Taming the Context Beast (SkillsCast recorded in October 2022)
- The Middle Way for Static Typing in Spark DataFrames (SkillsCast recorded in October 2022)
Introducing Troy: The schema-safe Cassandra toolkit - Advanced
Tamer is a Senior Software Engineer at Disney Streaming Services, building and maintaining distributed systems armed with nothing but Scala, types and the power of functional programming.