Monorepository vs Microservices for large 1000+ Files Anvil App

I don’t have experience with Microservices but I maintain a large Anvil App as well so hopefully, these suggestions might help.

  1. I agree with @Tony.Nguyen that splitting code into multiple files will speed up the Anvil Editor.

  2. I investigated your app and noticed your theme.css and code in Native Libraries aren’t really minified. Minifying them can increase the loading by a slight margin. Although this can make development harder for you.
    Hopefully, Anvil will consider implementing Serve Minified Assets

  3. Looks like you use anvil_extras in your project. While it’s great, Anvil Extras can have a big impact on your loading time. So if you see a decent decrease after removing it, consider building a customized version of it that only uses the stuff you need, or try taking things on your own.

  4. Some of the images in your app are directly uploaded from the Anvil Editor. This can have a big difference since these images are loaded during the initial loading. Use Image URLs instead.

These tips should give you a good decrease in speed.

Also, in case you want to go the other way, this might give you some ideas - Server Side Routing Attempt

1 Like