1 is simpler in that you don't have to worry about creating an http handler, but it's probably harder for you to test with locally.
2 you build your own container and so you can try running it on your local first. It's slightly more work because you have to be able to set up a http handler.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…