Yes, although this seems not to be mentioned in the documentation.
If you include num_threads=8 or num_threads='all_cpus' as an argument to rasterio.open then multithreading will be enabled (for writing of compressed data).
import numpy as np, rasterio
size = 16384
chunk = 512
with rasterio.open('test.tiff', 'w', driver='GTiff', nodata=0,
Here is how you serve gzipped GeoJson files from CloudFront:
In CloudFront, under behavior, set Compress Objects Automatically to yes
Make sure you invalidate the folder before checking if it works.