Quickly build serverless-based .NET Core database applications

Introduction

First, let's introduce some of the more important concepts that appear in this article:

Function Compute: Function Compute is an event-driven service. With Function Compute, users do not need to manage the operation of the server, but only need to write code and upload it. Function Compute prepares computing resources and runs user code in an elastically scalable manner, and users only pay for the resources consumed by the actual code running. For more information on function computing, refer to

This article will focus on how to quickly build a .NET Core database application based on function computing .

Subscribe to a service

  1. You can activate Function Compute for free and pay as you go. Function Compute has a large free quota.

quick start

  1. Install the latest version of Fun
  2. Clone project to local
  3. Deploy function computing and cloud database resources to the cloud
    • Execute in the project root directorycd fc-db/rds-mysql
    • run make buildto complete the build
    • runfun package
    • run fun deploy --use-ros --stack-name fc-dbto complete the deployment

Note Since the database instance will incur some fees, please make sure that there is a balance in the account before running it. Of course, in order to save the user's expenses, we choose the smallest per-volume instance. The cost of MySQL database is ¥0.236/hour. After the experience is completed, it is recommended to go to the ROS console to delete all cloud resource instances. 4. After the deployment is complete, make invoke_dotnetcorecall

$ make invoke_dotnetcore

using template: template.yml
========= FC invoke Logs begin =========
FC Initialize Start RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180
表创建成功!
FC Initialize End RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180
FC Invoke Start RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180
数据插入成功!
FC Invoke End RequestId: b3a3c027-2355-4e74-8944-6e90bedbe180

Duration: 35.10 ms, Billed Duration: 100 ms, Memory Size: 512 MB, Max Memory Used: 35.28 MB
========= FC invoke Logs end =========

FC Invoke Result:
 csharp

Summarize

Based on the Function Compute service, a simple database application is built to create tables and insert data. Through the Fun tool, function , eliminating the need to operate on multiple platforms.

Related References

  1. functional computing
  2. Aliyun Serverless VSCode
  3. Fun

Reference example

  1. fc-db

join us

team introduction

Alibaba Cloud Function Service is a brand-new computing service that supports the event-driven programming model. It helps users focus on their own business logic, build applications in a serverless manner, and quickly implement low-cost, scalable, and high-availability systems without considering the management of underlying infrastructure such as servers. Users can quickly create prototypes, and the same architecture can scale smoothly with business scale. Make computing more efficient, economical, resilient, and reliable. Both small startups and large corporations benefit from it. Our team is rapidly expanding and we are looking for talent. We're looking for teammates who have solid fundamentals. Not only can you read papers to track industry trends, but you can also quickly code to solve practical problems. Rigorous, systematic thinking skills. It can not only consider business opportunities, system architecture, operation and maintenance costs and many other factors as a whole, but also control the complete process of design/development/testing/release, predict and control risks. Driven by curiosity and a sense of purpose. Happy to explore the unknown, not only a dreamer, but also a practitioner. Tenacity, optimism and confidence. Seeing opportunities amid pressure and difficulty makes work fun! If you are passionate about cloud computing and want to build an influential computing platform and ecosystem, please join us and realize your dreams with us!

description of job

Build a next-generation serverless computing platform, including:

  1. Design and implement a complete and scalable front-end system, including authentication/authority management, metadata management, traffic control, metering and billing, log monitoring, and more
  2. Design and implement flexible and reliable back-end systems, including resource scheduling, load balancing, fault-tolerant processing, etc.
  3. Rich and easy-to-use SDK/Tools/CLI/console
  4. Driven by user needs, track industry trends, and use technology to drive business growth

Job Requirements

  1. Solid basic knowledge of algorithms/data structures/operating systems, excellent logical thinking ability.
  2. Master at least one programming language. For example Java/Go/C/C#/C++.
  3. Experience in developing large-scale, high-availability distributed systems is preferred.
  4. Experience in Web/Mobile Backends/Microservice development is preferred.
  5. Good communication skills and teamwork spirit, with certain organizational and coordination skills.
  6. Bachelor degree or above
  7. Students who have more than 3 years of work experience and have passed the "Alibaba Coding Specification" certification will be given priority. Certification address: https://edu.aliyun.com/certification/cldt02

CV submission

yixian.dw AT alibaba-inc.com

" Alibaba's cloud-native technology circle focuses on microservices, serverless, containers, service mesh and other technical fields, focuses on cloud-native popular technology trends, and cloud-native large-scale implementation practices, and is a technology circle that understands cloud-native developers best."

{{o.name}}
{{m.name}}

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=324142347&siteId=291194637