I signed up for the paid Microsoft Cognitive Services Bing News API.
Is there a way in the Cognitive Services API's to limit calls so billing doesn't get out of control?
For example it would be great if the account shut down at 100k calls a month VS the default which allows the calls to go over and charges me overages of $30 per 10k.
There are no built-in throttle mechanisms in the Cognitive Services API's (aside from the free tier which limits monthly access).
You'll need to build some type of metering into your app to be aware of call counts (and how you accomplish that is really up to you).
Related
Is there any way to get Cost and Utilization(CPU, Memory, DTU) trend of azure resources by using azure cost management apis.
If you check this Azure Cost Management documentation, then you will find that -
The Azure Cost Management APIs provide the ability to explore cost and usage data by creating customized filters and expressions allowing you to answer consumption-related questions for your Azure resources.
But note that these APIs are currently available for Azure Enterprise customers. So you can use it if you have the Enterprise Subscription.
To solve your problem you can use the Azure Consumption APIs. These APIs support Enterprise Enrollments and also some Web Direct Subscriptions. The Azure Consumption APIs give you programmatic access to cost and usage data for your Azure resources.
You should use Balances API, to get a monthly summary of information on balances, new purchases, Azure Marketplace service charges, adjustments, and overage charges.
And use Budgets API, to to create either cost or usage budgets for resources, resource groups, or billing meters.
Use the Usage Details API to get charge and usage data for all Azure 1st party resources you have.
Currently Balances API and Budgets API is only for Enterprise Customers only.
New to Azure and would like to know what the difference between Azure API Management and Logic Apps is.
Some pros and cons would be nice. Also what the costing for each of these is like.
Thanks
Seems you want to know about Azure API Management and Azure Logic Apps
Well let me help you what that actually are...
Azure API Management
Azure API Management allows organizations to publish APIs more securely, reliably, and at scale. Use API Management to drive API consumption among internal teams, partners, and developers while benefiting from business and log analytics available in the admin portal
Pros are
Consistent and modern API gateways for existing back-end services
Verifies API keys, JWT tokens, certificates, and other credentials
Help you to publish APIs to external, partner, and internal
developers to unlock the potential of their data and services
High availability Responds to requests to perform operations at
least 99.9% of the time.
Analytics, metrics and many more
For further details you could have a look on official docs
Pricing
There are different categories of pricing available based on type and uses. See the below screen shot:
You even can read more details about pricing here
Logic Apps:
Azure Logic Apps is a cloud service that helps you schedule, automate, and orchestrate tasks, business processes, and workflows when you need to integrate apps, data, systems, and services across enterprises or organizations. Logic Apps simplifies how you design and build scalable solutions for app integration, data integration, system integration
Pros are
Maximum automation with hassle free service
Process and route orders across on-premises systems and cloud
services
Can move uploaded files from an SFTP or FTP server to Azure Storage
Help you connect legacy, modern, and cutting-edge systems more
easily and quickly by providing prebuilt APIs as Microsoft-managed
connectors
Pricing
Usually two categories of pricing you may have Consumption pricing model which depends on how much you consume and have to pay as per your consumption.
another one Fixed pricing model. See the screen shot:
You can have a look more details on official docs
Hope this would help you.
We are using a free account of Bing Search API for evaluation and we found it getting us proper results in a very reasonable time. We are planning to extend our account by purchasing a subscription package. We want to ask some questions regarding (QPS) Query Per Second limit:
Can we have it increased?
Are there any packages that we need to purchase that have certain
increased limit?
Yes, any of the paid tiers allow for higher throughput:
If you need instructions on how to signup for a paid bing subscription, I've posted a guide in an answer to this question: Unable to find Subscription Key for Microsoft Cognitive Services
Is there an easy way to count calls, or specific items within a call in Azure?
If not, is there an easy way to count the amount of data transferred to the cloud service?
The data-transfer-In\out for a cloud service will be part of monthly Azure bill. There is an API available for Enterprise Azure customers (https://automaticbillingspec.blob.core.windows.net/spec/UsageDownloadRestfulSampleClient.zip) but not yet for Credit Card (CC) Customers\non-EA. For CC customer the bill is downloadable as CSV from the management portal
I have actually pay-as-you-go plan in my account right now and I am using free 20MB database to all my projects in this account. I've created mobile services for my mobile app and it's time to release this project. So I think the best for me right now is move from Free Mobile Services to Basic so I can have unlimited devices to use this. But I don't know how much database size and bandwidth I would need. I just want to set my plan to Basic and create new database and then pay how much bandwidth and database size I would need.
I found this calculator and I just want to buy that Basic services with 1 unit and I just don't want to fill any other things (not because I don't want them because I just don't know how many and that it would be great that with rising app using there would be rising too). Is it possible?
I hope I explained my problem well.
Btw: What unit means in "1.5M API calls per unit"?
Thanks
Yes, you can continue to use Free SQL DB with Basic tier of Windows Azure Mobile Services. SQL and Mobile Services are separate items on your subscription and each can be scaled independently of the other. In practice if you have a lot of load, you will likely need to scale both - for architectural reasons.
Egress bandwidth for Mobile Service responses to the client is included in Mobile Services pricing. If you don't use SQL in the same data center, you may incur separate bandwidth charges. Although for latency reasons, we strongly recommend using a database and Mobile Service in the same data center which also eliminates egress costs for Mobile Service - SQL interaction.
You can purchase 1-6 units of Basic tier of Mobile Services. Each unit provides 1.5M API calls per month. So if you buy 2 Basic units, you will get 3M API calls per month and so on.
Thanks.
Dinesh Kulkarni
(Program Manager, Windows Azure)