This week is Data and AI Summit
at which I am speaking, but I’m already looking past it at Delta Hack:
2021. My interest in using Delta
Lake has been steadily increasing since we started
delta-rs and I’m finding more and more
use-cases for our recently introduced writer support. Delta Hack (#deltahack
)
will be an opportunity to really dive into some more complex problems that
cannot be solved in an hour or two after work.
Howdy!
Welcome to my blog where I write about software
development
, cycling, and other random nonsense. This is not
the only place I write, you can find more words I typed on the Buoyant Data blog, Scribd tech blog, and GitHub.
Converting XML to JSON in Rust
I generally default to using JSON for data interchange but there are still a
myriad of formats of XML out there, for which I have created the
xmltojson crate. I originally wrote this
one night to help me get an XML dataset into JSON so that I could use
PostgreSQL’s JSONB
column type, but I only recently
published it to crates.io since it may be useful for
others.
Dynamically forwarding SSH ports
Working over SSH on a big beefy remote machine is a great way to extend the
life of any laptop, but presents challenges when developing network-based
services. Fortunately OpenSSH has a “port forwarding” feature which has been around for a number of
years. Port forwarding allows the user to tunnel a port from the remote machine back to
their local machine, in essence allowing you to access a remote service bound to port 8000 on your own localhost:8000
. When I first learned about this, I would fiddle around
with my ssh
invocations or hardcode a list of potential ports forwarded in
my ~/.ssh/config
. If I was working on a new service that needed a port not yet forwarded, I would disconnect, add it to the list of ports in my config
file, and then reconnect. That was until my pal nibz
(nibalizer) showed me how to dynamically add
port forwards to an already existing session.
Generating pre-signed S3 URLs in Rust
Creating Pre-signed S3 URLs in Rust took me a little more brainpower than I had anticipated, so I thought I would share how to generate them using Rusoto. Pre-signed URLs allow the creation of purpose built URLs for fetching or uploading objects to S3, and can be especially useful when granting access to S3 objects to mobile or web clients. In my use-case, I wanted the clients of my web service to be able to access some specific objects from a bucket.
Why build a native interface to Delta Lake
Investing in the development of delta-rs is one of the longer shots I have taken recently and with my upcoming Data and AI Summit talk on the subject, I wanted to share some back story on the project. As I have mentioned before Delta Lake is a key component of Scribd’s data platform. We selected Delta Lake for many reasons, including that it is a open and vendor neutral project. The power of Delta Lake has opened up countless opportunities for data and for the past year I have seen the potential for many more.
Recovering from disasters with Delta Lake
Entering into the data platform space with a lot of experience in more
traditional production operations is a lot of fun, especially when you ask
questions like “what if X
goes horribly wrong?” My favorite scenario to
consider is: “how much damage could one accidentally cause with our existing
policies and controls?” At Scribd we have made
Delta Lake a cornerstone of our data platform, and as such
I’ve spent a lot of time thinking about what could go wrong and how we would
defend against it.
Understanding big data partitioning
Data partitioning is one of the principles to utilize when developing large data sets, but do you know what that actually means for the storage format? I didn’t! Many “big data” storage systems such as HDFS, S3, and Azure Data Lake Storage all are effectively a file system. This past year or so, I’ve become much more familiar with Delta Lake and kind of just assumed that data partitioning was something being done at the transaction log level. Turns out I guessed wrong.
Building a goede search engine
This weekend I finally got around to building a little Rust “full text search engine” based on the educational post written by my Scribd colleague Bart: titled Building a full-text search engine in 150 lines of Python code. Bart did a great job writing an accessible post which introduced some common search concepts using Python, my objective wasn’t necessarily to write something faster or better but to use the exercise as Rust practice. My day job is no longer writing code so the opportunity for a problem with fixed scope which would work out my Rust muscles was too good to pass up. In this post I want to share some things which I’ve learned in the process of duplicating Bart’s work.
Subscribe to my "Podcast Picks"
I am have always been a fan of podcasts, but have never had really any good way to share the interesting things I am listening to. A couple weeks ago I struck upon an idea that seems so bafflingly simple in retrospect: I could just host my own podcast feed.
Software-defined networks with FreeBSD Jails
As a comprehensive operating system FreeBSD never ceases to impress me, the
recent iterations of FreeBSD
Jails as an example have been an
absolute joy to use. The introduction of the
vnet(9)
network subsystem has completely transformed what I had originally thought
about software-defined networking. My previous exposure to the concept of
software-defined
networking was
through both OpenStack and Docker, two very
different approaches to the broad domain of “SDN”. FreeBSD’s vnet
system has
resonated most strongly with me and has allowed me some measure of success in
deploying real production-grade virtualized networks.