18.7 Aurora Machine Learning Integration: Calling SageMaker from SQL
Right, so you’ve got your data in Aurora. Good for you. It’s safe, it’s probably got decent replication, and you can query it with SQL. But let’s be honest, sometimes the data in the database isn’t the whole story. You want to run it through a machine learning model. The old, painful way was to write a script that SELECTs data, connects to some ML service (or worse, loads a library), runs the prediction, and then UPDATEs the rows. It’s a round-trip nightmare of latency, complexity, and boilerplate code.