Fabric F0: the on-demand capacity. A question of cost

At the Fabric Community Conference, the Fabric F0 capacity was introduced. This capacity is the on-demand version of Fabric, where you essentially only pay for what you use. And I personally (and professionally) think it’s a very cool concept.

Use cases

So let’s start with the use cases, before digging into the numbers.

When you look at the Microsoft docs, you’ll see they recommend Trial and F0 when you’re starting to explore Fabric and in early production stages where the load is less predictable. When things start to even out, then you can move to a regular, fixed capacity.

I agree with this, and like to add something as well. Another use case, in my opinion, is the testing and/or development environment. These workloads are usually highly irregular and do not need 24/7 compute capacity or availability. As I’m working for a consultancy company, I’m unlikely to work 5 days a week for the same customer. It changes a lot during the week. And when I’m not engaged, it makes sense not to waste money on capacity that’s not doing anything.

A simple calculation

The way we set up Fabric, we only use Lakehouses for storage (data ingestion, cleansing, and modelling). I know people disagree, and that’s fine. We’ve made our choice here. This also means that moving data between these ‘layers’ is done using Fabric Notebooks with Spark.

Data ingestion is almost always done using data pipelines because they can use connections routed through an on-premises data gateway. Most source systems have security enabled through IP filtering, next to different layers of authentication and authorisation. When you use a notebook, it’s much harder to do that; the notebook tends to go to the internet using one of the many IP addresses Microsoft has attached to the Fabric service.

For your information, you may be able to work around this using Fabric (open) Mirroring, where data is pushed from the source into the Mirrored Database item. A very cool technology that’s also almost completely free. Are you reading this, fellow Dutchies?

To store the metadata, we use the Fabric SQL Database.

Joking aside, how much does it cost to run a simple pipeline?

The pipeline, as described, runs for 45 minutes. When we check the Fabric Capacity Metrics App, I see the following numbers as consumed capacity units:

  • Pipelines: 15612.50
  • Lakehouses: 1556.50
  • Fabric SQL DB: 3197

Total usage: 20366 CUs.

It immediately stands out that the Pipelines are the most expensive part of this process. It really depends on your process, way of working, and knowledge in the organisation whether you can move more towards high code or not. Whatever you choose, I won’t judge.

For simplicity, let’s assume all the CUs are reported at the end of the job. Based on the workload types, these operations would be split over 2,880 thirty-second windows (24 hours). That means each 30-second window would receive ~7 CU-seconds (20366/2880).

F8 provides 8 CU-seconds per second, meaning 240 CU-seconds per thirty-second window. The capacity would therefore be drastically underutilised. You could actually run this job on an F2 and still only be at about 11% utilisation.

So, what would you pay for on an F2?

  • 1 hour of uptime at 0.38 euros in West Europe based on list prices
  • The cost of reconciling the CU that has been smoothed into the future. That’s 23.75 hours of the 24 hours of consumption. So, 20,366/ 24*23.75 = 20,153.85. A CU hour costs 0.19 euros, so 0.19 * ( 20,153.85/3600) = 1.06 euros

Total cost on the F2 would therefore be 1.44 euros.

What about an F0

It depends exactly what multipliers are hit. Multipliers are mapped at operation name level. To keep it simple, though, let’s assume everything is 1x, which seems to match the workloads used in this example.

Here the calculation is simple:

Total CU Seconds/ seconds in an hour * hourly cost * multiplier

20366/ 3600*0.19*1 = 1.07 euros, based on North Europe list prices

CUs or CU hour?

One thing that broke my mind when I first encountered it was the difference between CU Seconds and CU Hours.

CUs are the number of Capacity Units you get each second. F2 gives you 2 capacity units per second, or 60 in the 30-second window. The latter is the usual way they are shown in the Fabric Capacity Metrics app. As a side note, a new app is available that makes capacity analysis much easier.

CU Hour is the capacity level you get per hour. 2 CU Hours equals an F2. 4 is the F4, and so forth. When I asked the good people at Microsoft why they did this, the answer was simple: they didn’t want to show zeroes in the app when there was actual usage that would show up at a lower granularity.

How should you calculate?

First, list the items you’re using. Next, check over a 24-hour period to see how much capacity they use. Also, check if you’re anywhere near the limit of a capacity SKU. Are you close to an F4, F8, or F128? If you are, continuously, F0 is not for you. If the load is highly irregular, you can very well benefit from the change.
One thing to keep in mind is the multipliers; some items in Fabric are taxed more heavily. For instance, AI Function evaluation is billed three times in this setup. Be sure to account for that multiplier.

You can find the full list here.

My advice?

Use it in Development, where you run small workloads to build or expand your solutions. If you have a test environment where you consolidate your development work and run the integration tests before releasing it to acceptance or production, the F0 can be a good fit as well. Maybe less so if it’s running a lot.

For acceptance and production, it may be a good fit, but it depends heavily on your workload. I wouldn’t recommend it in a busy production environment that needs to be available 24/7. In this case, I’d opt for a regular Fn capacity.

Leave a Reply