- 註冊時間
- 2023-12-26
- 最後登錄
- 2023-12-26
- 閱讀權限
- 10
- 積分
- 5
- 精華
- 0
- 帖子
- 1

該用戶從未簽到
|
You should set a concurrency limit Most cloud platforms have the ability to limit the amount of concurrency for serverless functions. This gives you protection at the infrastructure level against a degree of parallelism in your work. Now that you have set the connection pool size for each function call, the concurrency limit will allow you to plan for a specific number of open connections to your data store. Most cloud providers recommend starting with low concurrency, such as five to ten and then increasing to handle additional peak loads. know the minimum and maximum number of open connections and guarantee that you will not exceed these values. Be sure to check out the documentation on Preserving Concurrency to learn more about this configuration. However as your application becomes more popular you may find that your bottleneck is still the connection to the database especially when other parts of your environment also rely on it. In these cases it may be necessary to funnel connections to the database through a proxy.
Pooled Database Connections This diagram shows poo photo editing servies ing of many database connections through separate service proxies before connecting to the database. In some cases you will still see improvements in latency but most of the latency will be shifted from the connection between the client and the business logic to the connection between the business logic and the data store. In the worst case scenario you might have business logic in different areas trying to access your database making the latency problem worse The graph shows that the server takes a long time to communicate with the remote database. The diagram shows the server communicating quickly with nearby databases. Placing the database closer to the server can significantly improve load times. This is further complicated by limitations within the edge functions themselves. Since the goal of edge computing is to distribute large amounts of computing globally there are some trade-offs to .

Ensure performance. In most cases the consideration comes down to the fact that the code must run in a true isolation environment. Code must adhere to tighter resource limits. The code may not have access to the full set of eg. The code might not open stateful connections or might only open a certain number of connections. Edge Computing Solutions Fortunately the edge computing ecosystem is growing rapidly. Companies such as Microsoft and Microsoft have edge solutions that in turn have multiple application solutions powered by data storage. Unlike the serverless solutions above these solutions can be quite complex and highly dependent on your specific implementation. Be sure to carefully evaluate each option to meet your needs. The proxy connection via is not ideal but adding an extra proxy layer between the business logic and the database can help preserve the existing infrastructure while making as few changes as .
|
|