In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
This article is about how to quickly build a .NET Core database application based on Serverless. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it with the editor.
Brief introduction
First of all, several important concepts that appear in this article are introduced.
Function computing (Function Compute): function computing is an event-driven service. Through function calculation, users do not need to manage the operation of the server, but only need to write code and upload. The function calculation prepares the computing resources and runs the user code in an elastic way, while the user only needs to pay according to the resources consumed by the actual code. Function calculation for more information
The following will focus on how to quickly build a .NET Core database application based on functional computing.
Activate the service
Free function calculation, pay by quantity, function calculation has a large amount of free.
Quick start
Install the latest version of Fun
Clone project to local
Git clone git@github.com:vangie/fc-db.git
Deploy functional computing and cloud database resources to the cloud
Execute cd fc-db/rds-mysql under the project root directory
Run make build to complete the build
Run fun package
Run fun deploy-- use-ros-- stack-name fc-db to complete the deployment
Note that due to some fees incurred by the database instance, please make sure there is a balance in the account before running. Of course, in order to save users' expenses, we choose the smallest by-quantity instance. The fee for MySQL database is ¥0.236 per hour. After the experience is completed, it is recommended to delete all cloud resource instances in the ROS console. 4. After deployment, call the cloud function through make invoke_dotnetcore
$make invoke_dotnetcoreusing template: template.yml= FC invoke Logs begin = FC Initialize Start RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180 table created successfully! FC Initialize End RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180FC Invoke Start RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180 data inserted successfully! FC Invoke End RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180Duration: 35.10ms, Billed Duration: 100ms, Memory Size: 512MB, Max Memory Used: 35.28MB= FC invoke Logs end = FC Invoke Result: csharp
A simple database application is built based on function computing service, which is used to create tables and insert data. Through the Fun tool, one-click deployment function calculation and other corresponding cloud resources, eliminating the steps of multi-platform operation.
The above is how to quickly build a .NET Core database application based on Serverless. The editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.