Blog

  • How we scaled data streaming at Coinbase using AWS MSK

    How we scaled data streaming at Coinbase using AWS MSK

    [ad_1]

    By: Dan Moore, Eric Sun, LV Lu, Xinyu Liu

    Tl;dr: Coinbase is leveraging AWS’ Managed Streaming for Kafka (MSK) for ultra low latency, seamless service-to-service communication, data ETLs, and database Change Data Capture (CDC). Engineers from our Data Platform team will further present this work at AWS’ November 2021 Re:Invent conference.

    Abstract

    At Coinbase, we ingest billions of events daily from user, application, and crypto sources across our products. Clickstream data is collected via web and mobile clients and ingested into Kafka using a home-grown Ruby and Golang SDK. In addition, Change Data Capture (CDC) streams from a variety of databases are powered via Kafka Connect. One major consumer of these Kafka messages is our data ETL pipeline, which transmits data to our data warehouse (Snowflake) for further analysis by our Data Science and Data Analyst teams. Moreover, internal services across the company (like our Prime Brokerage and real time Inventory Drift products) rely on our Kafka cluster for running mission-critical, low-latency (sub 10 msec) applications.

    With AWS-managed Kafka (MSK), our team has mitigated the day-to-day Kafka operational overhead of broker maintenance and recovery, allowing us to concentrate our engineering time on core business demands. We have found scaling up/out Kafka clusters and upgrading brokers to the latest Kafka version simple and safe with MSK. This post outlines our core architecture and the complete tooling ecosystem we’ve developed around MSK.

    Configuration and Benefits of MSK

    Config:

    • TLS authenticated cluster
    • 30 broker nodes across multiple AZs to protect against full AZ outage
    • Multi-cluster support
    • ~17TB storage/broker
    • 99.9% monthly uptime SLA from AWS

    Benefits:

    Since MSK is AWS managed, one of the biggest benefits is that we’re able to avoid having internal engineers actively maintain ZooKeeper / broker nodes. This has saved us 100+ hours of engineering work as AWS handles all broker security patch updates, node recovery, and Kafka version upgrades in a seamless manner. All broker updates are done in a rolling fashion (one broker node is updated at a time), so no user read/write operations are impacted.

    Moreover, MSK offers flexible networking configurations. Our cluster has tight security group ingress rules around which services can communicate directly with ZooKeeper or MSK broker node ports. Integration with Terraform allows for seamless broker addition, disk space increases, configuration updates to our cluster without any downtime.

    Finally, AWS has offered excellent MSK Enterprise support, meeting with us on several occasions to answer thorny networking and cluster auth questions.

    Performance:

    We reduced our end-to-end (e2e) latency (time taken to produce, store, and consume an event) by ~95% when switching from Kinesis (~200 msec e2e latency) to Kafka (<10msec e2e latency). Our Kafka stack’s p50 e2e latency for payloads up to 100KB averages <10 msec (in-line with LinkedIn as a benchmark, the company originally behind Kafka). This opens doors for ultra low latency applications like our Prime Brokerage service. Full latency breakdown from stress tests on our prod cluster, by payload size, presented below:

    Proprietary Kafka Security Service (KSS)

    What is it?

    Our Kafka Security Service (KSS) houses all topic Access Control Lists (ACLs). On deploy, it automatically syncs all topic read/write ACL changes with MSK’s ZooKeeper nodes; effectively, this is how we’re able to control read/write access to individual Kafka topics at the service level.

    KSS also signs Certificate Signing Requests (CSRs) using the AWS ACM API. To do this, we leverage our internal Service-to-Service authentication (S2S) framework, which gives us a trustworthy service_id from the client; We then use that service_id and add it as the Distinguished Name in the signed certificate we return to the user.

    With a signed certificate, having the Distinguished Name matching one’s service_id, MSK can easily detect via TLS auth whether a given service should be allowed to read/write from a particular topic. If the service is not allowed (according to our acl.yml file and ACLs set in ZooKeeper) to perform a given action, an error will occur on the client side and no Kafka read/write operations will occur.

    Also Required

    Parallel to KSS, we built a custom Kafka sidecar Docker container that: 1) Plugs simply into one’s existing docker-compose file 2) Auto-generates CSRs on bootup and calls KSS to get signed certs, and 3) Stores credentials in a Docker shared volume on user’s service, which can be used when instantiating a Kafka producer / consumer client so TLS auth can occur.

    Rich Data Stream Tooling

    We’ve extended our core Kafka cluster with the following powerful tools:

    Kafka Connect

    This is a distributed cluster of EC2 nodes (AWS autoscaling group) that performs Change Data Capture (CDC) on a variety of database systems. Currently, we’re leveraging the MongoDB, Snowflake, S3, and Postgres source/sink connectors. Many other connectors are available open-source through Confluent here

    Kafdrop

    We’re leveraging the open-source Kafdrop product for first-class topic/partition offset monitoring and inspecting user consumer lags: source code here

    Cruise Control

    This is another open-source project, which provides automatic partition rebalancing to keep our cluster load / disk space even across all broker nodes: source code here

    Confluent Schema Registry

    We use Confluent’s open-source Schema Registry to store versioned proto definitions (widely used along Coinbase gRPC): source code here

    Internal Kafka SDK

    Critical to our streaming stack is a custom Golang Kafka SDK developed internally, based on the segmentio/kafka release. The internal SDK is integrated with our Schema Registry so that proto definitions are automatically registered / updated on producer writes. Moreover, the SDK gives users the following benefits out of the box:

    • Consumer can automatically deserialize based on magic byte and matching SR record
    • Message provenance headers (such as service_id, event_time, event_type) which help conduct end-to-end audits of event stream completeness and latency metrics
    • These headers also accelerate message filtering and routing by avoiding the penalty of deserializing the entire payload

    Streaming SDK

    Beyond Kafka, we may still need to make use of other streaming solutions, including Kinesis, SNS, and SQS. We introduced a unified Streaming-SDK to address the following requirements:

    • Delivering a single event to multiple destinations, often described as ‘fanout’ or ‘mirroring’. For instance, sending the same message simultaneously to a Kafka topic and an SQS queue
    • Receiving messages from one Kafka topic, emitting new messages to another topic or even a Kinesis stream as the result of data processing
    • Supporting dynamic message routing, for example, messages can failover across multiple Kafka clusters or AWS regions
    • Offering optimized configurations for each streaming platform to minimize human mistakes, maximize throughput and performance, and alert users of misconfigurations

    Upcoming

    On the horizon is integration with our Delta Lake which will fuel more performant, timely data ETLs for our data analyst and data science teams. Beyond that, we have the capacity to 3x the number of broker nodes in our prod cluster (30 -> 90 nodes) as internal demand increases — that is a soft limit which can be increased via an AWS support ticket.

    Takeaways

    Overall, we’ve been quite pleased with AWS MSK. The automatic broker recovery during security patches, maintenance, and Kafka version upgrades along with the advanced broker / topic level monitoring metrics around disk space usage / broker CPU, have saved us hundreds of hours provisioning and maintaining broker and ZooKeeper nodes on our own. Integration with Terraform has made initial cluster configuration, deployment, and configuration updates relatively painless (use 3AZs for your cluster to make it more resilient and prevent impact from a full-AZ outage).

    Performance has exceeded expectations, with sub 10msec latencies opening doors for ultra high-speed applications. Uptime of the cluster has been sound, surpassing the 99.9% SLA given by AWS. Moreover, when any security patches take place, it’s always done in a rolling broker fashion, so no read/write operations are impacted (set default topic replication factor to 3, so that min in-sync replicas is 2 even with node failure).

    We’ve found building on top of MSK highly extensible having integrated Kafka Connect, Confluent Schema Registry, Kafdrop, Cruise Control, and more without issue. Ultimately, MSK has been beneficial for both our engineers maintaining the system (less overhead maintaining nodes) and unlocking our internal users and services with the power of ultra-low latency data streaming.

    If you’re excited about designing and building highly-scalable data platform systems or working with cutting-edge blockchain data sets (data science, data analytics, ML), come join us on our mission building the world’s open financial system: careers page.


    How we scaled data streaming at Coinbase using AWS MSK was originally published in The Coinbase Blog on Medium, where people are continuing the conversation by highlighting and responding to this story.

    [ad_2]

    Source link

  • Liti Capital’s Wrapped LITI (wLITI) lists on Bitcoin.com Exchange | by Bit Media Buzz | Aug, 2021

    Liti Capital’s Wrapped LITI (wLITI) lists on Bitcoin.com Exchange | by Bit Media Buzz | Aug, 2021

    [ad_1]

    Bit Media Buzz
    Liti Capital is now trading on Bitcoin.com Exchange

    Geneva, Switzerland, August 24, 2021 — Liti Capital’s wLITI token, a wrapped version of the Swiss company’s LITI equity token, has been listed on the Bitcoin.com Exchange on 24 August at 10:00AM UTC. wLITI is trading with BTC and USDT pairs.

    Liti Capital, a Swiss-based blockchain private equity fund specializing in raising capital for legal cases, is making waves in traditional investing by bringing litigation financing to the masses, an investment practice traditionally monopolized by hedge fund heavyweights and elite investors.

    Just last week, 19 August 2021, Liti Capital announced that it was funding a claim (www.binanceclaim.com) against Binance, which would enable affected individuals to pursue claims, including, if necessary, in arbitration, for compensation in relation to the exchange failing on 19 May 2021. This failure resulted in the trading accounts (including Futures, Margin, and Leveraged Token products) of at least 700 and potentially thousands of individuals being effectively untradeable for hours, causing traders to suffer losses that could exceed one hundred million dollars.

    Litigation financing is the practice of bringing in investors to cover the cost of a lawsuit or arbitration in exchange for a portion of the profit. Litigation financing specialists, such as Liti Capital, purchase litigation assets for cases they deem to have a high chance of winning.

    While litigation financing often requires an initial investment of $500,000 to $1 million from an investor, Liti Capital makes it accessible for anyone with as little as $50. It does this by tokenizing shares in Liti Capital and paying out dividends to Liti Capital (LITI) equity token holders when a case in Liti Capital’s portfolio is won.

    Liti Capital has already secured a healthy case portfolio with its largest case potentially worth more than $1 billion when it finally settles. Cases like these, which tend to be commercial rather than consumer or personal lawsuits, usually target large-scale corporate disputes valued at more than $10 million. While they could take years before a settlement is reached, successful litigation funders can expect to pocket between three and five times their initial investments, according to estimates by litigation finance expert Steven Friel.

    wLITI is an ERC-20 token that is the wrapped version of the LITI equity token. Launched on June 29, 2021, the wLITI token is suitable for trading on exchanges such as Bitcoin.com, whereas the LITI token is only available through liticapital.com after meeting KYC requirements. Liti Capital uses the blockchain to manage its share registry. Development of its own blockchain-based case management tools is on its roadmap.

    Switzerland-based Liti Capital creates wLITI at a LITI token buyer’s request via Liti Capital’s app or website, which converts the LITI to wLITI at a 1:5000 ratio. The tokens will always maintain this ratio. The buyer is then able to trade their wLITI freely. Liti Capital does not directly sell wLITI.

    LITI is a true digital share of Liti Capital that has voting rights, pays dividends and is protected under Swiss law. LITI is purposely not designed to be on exchanges at this time.

    Both tokens represent Liti Capital, whose mantra is “private equity for all.” Liti Capital works exclusively in a single form of private equity — Litigation Finance, also called third party funding. This asset class has remained almost entirely exclusive to hedge funds and venture capitalists since its inception several decades ago. Litigation Finance is the practice of financing all or part of a legal case on behalf of a plaintiff for an agreed upon percentage of the court award.

    Once Liti Capital purchases a portion of ownership of a case, it provides capital that can be used in many ways: legal fees, case management and strategy, expert witnesses, intelligence work and whatever else is needed to give the plaintiff the best chance of winning the case and collecting the award. The portion owned by Liti Capital becomes a “litigation asset” that backs the LITI token.

    Danish Chaudhry, CEO of Bitcoin.com Exchange, shared his views on wLiti’s listing, saying,“The Liti Capital team are providing an equity token which is the first of its kind, focused around easy-to-access private equity investment opportunities for basically anyone with the help of blockchain technology.”

    Chaudhry continues on by saying: “We’re very excited to see how Liti Capital will continue to empower their vision, and gain further outreach with our outstanding community at the exchange.”

    Jonas Rey, CEO of Liti Capital, said, “Listing on Bitcoin.com Exchange is an excellent opportunity for us, and a milestone we are proud of. We have full confidence that once the public discovers just how valuable the litigation assets we are able to purchase on behalf of LITI investors are and how powerful blockchain-backed private equity trading can be, that wLITI will become a very popular token indeed.”

    Listing details

    Trading Opening: Aug. 24, 2021, 10:00AM UTC

    Deposit Opening: Aug 24, 2021, 09;00AM UTC

    Trading Pairs: wLITI/BTC

    wLITI/USDT

    About Liti Capital

    Switzerland-based Liti Capital is a Swiss limited liability company specializing in litigation finance and fintech. Liti Capital buys litigation assets to fund lawsuits and provides a complete strategic solution along with connections to top law firms to help clients win their cases. Tokenized shares of the company lower the barrier of entry for retail investors and give token holders a vote in the company’s decision-making process. Dividends are distributed to LITI token holders upon the success of the plaintiff. Jonas Rey, co-founder of Liti Capital, also heads Athena Intelligence, one of the most successful intelligence agencies in Switzerland. His two co-founders, Andy Christen and Jaime Delgado, bring operational, innovation and technical skills to round out the leadership team.

    Liti Capital recently onboarded seasoned industry leader David Kay as chief information officer and executive chairman. Boasting more than a decade of experience as funding partner and portfolio manager of a billion-dollar private equity fund in the litigation financing space, Kay successfully enforced what was at the time the largest international arbitration award in history, bringing in over $1 billion in cash and securities.

    About Bitcoin.com Exchange

    The mission of Bitcoin.com Exchange is to empower people from all over the world to trade cryptocurrencies with ease and confidence, from first-time traders to advanced trading professionals. With high liquidity, 24/7 multilingual support and dozens of trading pairs, complemented with a high level of security, we offer an attractive platform for trading any cryptocurrency. Within one year since launch, on average, the exchange has been visited by more than 500K active traders per month, and this number continues to grow by the minute.

    [ad_2]

    Source link

  • American Rapper Tyga To Launch OnlyFans Crypto-Competitor

    American Rapper Tyga To Launch OnlyFans Crypto-Competitor

    [ad_1]

    Crypto has recently been suggested as a fix for the woes popular adult content platform OnlyFans has been going through. The company had announced last week that it planned to remove all of its adult content by October first. Speculations were that this was due to payment processors Visa and MasterCard making payment harder for the company due to the nature of its foremost content. But it was clarified that it was in fact due to the company wanting investors since they had been turned down due to the type of content they host on their site.

    Related Reading | South African Man Loses $900,000 Worth Of Bitcoin After Accidentally Deleting Keys

    This had sent a shockwave through the community and the news world. Crypto enthusiasts started suggesting that things like this could be avoided with decentralized platforms and payment services like cryptocurrencies. With Bitcoin leading in the suggestions for the type of crypto to be used for this.

    The company has not responded to any of this, seemingly steadfast in its resolve to purge the site of all pornographic content. To this end, America rapper Tyga has announced that he plans to release his own platform that will be a direct competitor to OnlyFans. The platform the rapper plans to launch will be built on the Ethereum network.

    Tyga Exits OnlyFans

    Rapper Tyga had opened an OnlyFans account almost a year ago. Tyga had been a strong advocate for the platform and had started a modeling agency, Too Raww, that was dedicated to helping content creators get started on OnlyFans. Following the ban on pornographic content, the rap star took to his Instagram to announce his exit from the platform.

    Related Reading | Crypto Market Goes Into “Extreme Greed,” What This Means For Bitcoin

    Tyga announced that he had deleted his account on the platform and he was launching his own OnlyFans competitor, Myystar, which would provide content creators more freedom and a better cut of earnings. While also providing higher quality viewing for the audience. According to the press release, Myystar will only take 10% off creators’ earnings compared to the 20% on OnlyFans.

    Building With A Crypto Backbone

    Myystar’s most striking feature yet remains the fact that the platform is being built on the Ethereum network. The rapper seems to have listened to the suggestions coming out of the market recently and has run with this.

    Related Reading | Here’s What Bitcoin Exchange Inventory Levels Means For The Bull Rally

    In addition to providing better quality and a higher percentage of earnings, Myystar will also allow content creators to sell NFTs on the platform, and also, features that are relevant to the music industry. This will provide content creators the ability to mint pornographic content in order to sell them off as NFTs.

    Crypto total market cap chart from TradingView.com

    Crypto total market cap continues upward trend | Source: Crypto Total Market Cap on TradingView.com

    A countless number of sex workers and adult content creators have been affected by the OnlyFans ban on pornographic content. Tyga told Forbes that he wanted to give these people hope with his platform. “I know how many people make a lot of money on OnlyFans, and that’s where most of their revenue is at. I want to give those people hope,” Tyga said.

    The Myystar platform is scheduled to launch in October, following the ban of pornographic content on OnlyFans happening on October 1st. The site is currently up and is allowing creators to sign up ahead of the launch.

    Featured image on Discotech, chart from TradingView.com



    [ad_2]

    Source link

  • BTC, ADA, AVAX, CAKE, ATOM

    BTC, ADA, AVAX, CAKE, ATOM

    [ad_1]

    Bitcoin (BTC) is knocking at the doors of the key $50,000 level and most traders are still optimistic even after the digital asset rallied 70% from the July 20 low at $29,278 to an intraday high at $49,757.04 on Aug. 21.

    Monitoring resource Material Indicators pointed to a lot of puts at the $50,000 strike price and the “positive funding almost across the board (overheated),” which suggests a rejection at the current levels and a “pullback going into September.”

    Crypto market data daily view. Source: Coin360

    Nikita Ovchinnik, chief business development officer of 1inch Network said that several new institutional investors had taken exposure to crypto in the past year, and that “they didn’t come for short-term gains.”

    Another positive sign for the crypto sector is the ever-growing list of unicorns. Analysts expect more companies to join the list as the adoption of crypto and blockchain increases.

    Bitcoin’s hesitation near the $50,000 mark may shift focus to altcoins? Let’s study the charts of the top-5 cryptocurrencies that are likely to attract traders’ attention in the short term.