Facebook Open source Haxl:haskell remote Access class library
Source: Internet
Author: User
KeywordsCan remote access open source
Haxl is a Haskell class library that simplifies steps to access remote databases and http://www.aliyun.com/zixun/aggregation/17117.html >web servers. Haxl can automatically:
Batch multiple requests for the same data source
Concurrent access to multiple different data sources
Cache a previous request
All of these actions are in the background, which means your data capture code can be cleaner and clearer than the original code. If you do not optimize the Data Crawler, HAXL can help you solve the big problem.
Many services follow a common architectural pattern: one is a fact, the other is a customer who wants to answer these factual questions. In the middle is a set of rules for how to answer specific questions--real business logic.
The Facebook,sigma service is responsible for classifying different content. Sigma customers ask high-level questions such as "is this article rubbish?" "or" is this URL associated with malware? Sigma will answer "Yes, block the account" or "No, continue".
The Sigma rule is currently written in a specific domain language called FXL, and FXL is also used as a scripting language.
Diverse data sources
HAXL data sources are categorized according to the type of request, you can have any number of data sources coexisting with the same HAXL customer, each data source may be used to get different types of data. Gadt can ensure the security of the request type, so the request type is always matched with its result type. The different data sources requested by the Typeable class can be stored in the HAXL request repository.
Use case
We want HAXL to be more useful in the next commercial app:
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.