This is a simple load balancing program based on Cloudflare Workers, which uses Cloudflare Workers to randomly allocate traffic to different URLs based on weight, similar to a DNS loop. However, DNS loops only support A records and AAAA records. Unlike DNS loops, this program supports all possible DNS records, including CNAME or other records.
Why is there this project? Because Cloudflare's dynamic load balancing is too expensive, it even costs $5 !
Please note that like DNS loops, you must ensure that all urls are normal and accessible, otherwise certain issues may arise.